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

Function domainset_restrict

freebsd/kern/kern_cpuset.c:464–471  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

462}
463
464static int
465domainset_restrict(const struct domainset *parent,
466 const struct domainset *child)
467{
468 if (child->ds_policy != DOMAINSET_POLICY_PREFER)
469 return (DOMAINSET_OVERLAP(&parent->ds_mask, &child->ds_mask));
470 return (DOMAINSET_ISSET(child->ds_prefer, &parent->ds_mask));
471}
472
473/*
474 * Lookup or create a domainset. The key is provided in ds_mask and

Callers 1

cpuset_testupdate_domainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected