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

Function cpuset_getbase

freebsd/kern/kern_cpuset.c:147–154  ·  view source on GitHub ↗

* Find the first non-anonymous set starting from 'set'. */

Source from the content-addressed store, hash-verified

145 * Find the first non-anonymous set starting from 'set'.
146 */
147static struct cpuset *
148cpuset_getbase(struct cpuset *set)
149{
150
151 if (set->cs_id == CPUSET_INVALID)
152 set = set->cs_parent;
153 return (set);
154}
155
156/*
157 * Walks up the tree from 'set' to find the root.

Callers 8

cpuset_refbaseFunction · 0.85
cpuset_testshadowFunction · 0.85
cpuset_shadowFunction · 0.85
cpuset_setproc_newbaseFunction · 0.85
cpuset_setprocFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected