Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\cgroup\cpuset.c Create Date:2022-07-28 11:16:11
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:s_cpuset_subset(p, q) - Is cpuset p a subset of cpuset q?* One cpuset is a subset of another if all its allowed CPUs and* Memory Nodes are a subset of the other, and its exclusive flags* are only set if the other's are set. Call holding cpuset_mutex.

Proto:static int is_cpuset_subset(const struct cpuset *p, const struct cpuset *q)

Type:int

Parameter:

TypeParameterName
const struct cpuset *p
const struct cpuset *q
446  Return pumask_subset - (*src1p & ~*src2p) == 0*@src1p: the first input*@src2p: the second input* Returns 1 if *@src1p is a subset of *@src2p, else returns 0 && nodes_subset(mems_allowed, mems_allowed) && is_cpu_exclusive(p) <= is_cpu_exclusive(q) && is_mem_exclusive(p) <= is_mem_exclusive(q)
Caller
NameDescribe
validate_changevalidate_change() - Used to validate that any proposed cpuset change* follows the structural rules for cpusets