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

Function cpuset_getroot

freebsd/kern/kern_cpuset.c:159–166  ·  view source on GitHub ↗

* Walks up the tree from 'set' to find the root. */

Source from the content-addressed store, hash-verified

157 * Walks up the tree from 'set' to find the root.
158 */
159static struct cpuset *
160cpuset_getroot(struct cpuset *set)
161{
162
163 while ((set->cs_flags & CPU_SET_ROOT) == 0 && set->cs_parent != NULL)
164 set = set->cs_parent;
165 return (set);
166}
167
168/*
169 * Acquire a reference to a cpuset, all pointers must be tracked with refs.

Callers 4

cpuset_refrootFunction · 0.85
cpuset_modifyFunction · 0.85
cpuset_modify_domainFunction · 0.85
cpuset_setprocFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected