函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\cgroup\cpuset.c Create Date:2022-07-27 12:18:31
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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.

函数原型:static int is_cpuset_subset(const struct cpuset *p, const struct cpuset *q)

返回类型:int

参数:

类型参数名称
const struct cpuset *p
const struct cpuset *q
446  返回:pumask_subset - (*src1p & ~*src2p) == 0*@src1p: the first input*@src2p: the second input* Returns 1 if *@src1p is a subset of *@src2p, else returns 0nodes_subset(mems_allowed, mems_allowed)且is_cpu_exclusive(p)小于等于is_cpu_exclusive(q)且is_mem_exclusive(p)小于等于is_mem_exclusive(q)
调用者
名称描述
validate_changevalidate_change() - Used to validate that any proposed cpuset change* follows the structural rules for cpusets