MCPcopy Create free account
hub / github.com/F-Stack/f-stack / cpuset_setproc_update_set

Function cpuset_setproc_update_set

freebsd/kern/kern_cpuset.c:1699–1713  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1697}
1698
1699int
1700cpuset_setproc_update_set(struct proc *p, struct cpuset *set)
1701{
1702 int error;
1703
1704 KASSERT(p != NULL, ("[%s:%d] invalid proc", __func__, __LINE__));
1705 KASSERT(set != NULL, ("[%s:%d] invalid set", __func__, __LINE__));
1706
1707 cpuset_ref(set);
1708 error = cpuset_setproc(p->p_pid, set, NULL, NULL, true);
1709 if (error)
1710 return (error);
1711 cpuset_rel(set);
1712 return (0);
1713}
1714
1715/*
1716 * In Capability mode, the only accesses that are permitted are to the current

Callers 1

do_jail_attachFunction · 0.85

Calls 3

cpuset_refFunction · 0.85
cpuset_setprocFunction · 0.85
cpuset_relFunction · 0.85

Tested by

no test coverage detected