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

Function domainset_valid

freebsd/kern/kern_cpuset.c:456–462  ·  view source on GitHub ↗

Return 1 if child is a valid subset of parent. */

Source from the content-addressed store, hash-verified

454
455/* Return 1 if child is a valid subset of parent. */
456static int
457domainset_valid(const struct domainset *parent, const struct domainset *child)
458{
459 if (child->ds_policy != DOMAINSET_POLICY_PREFER)
460 return (DOMAINSET_SUBSET(&parent->ds_mask, &child->ds_mask));
461 return (DOMAINSET_ISSET(child->ds_prefer, &parent->ds_mask));
462}
463
464static int
465domainset_restrict(const struct domainset *parent,

Callers 3

cpuset_initFunction · 0.85
cpuset_modify_domainFunction · 0.85
cpuset_testshadowFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected