函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Return in pmask the portion of a cpusets's cpus_allowed that* are online. If none are online, walk up the cpuset hierarchy* until we find one that does have some online cpus.* One way or another, we guarantee to return some non-empty subset

函数原型:static void guarantee_online_cpus(struct cpuset *cs, struct cpumask *pmask)

返回类型:void

参数:

类型参数名称
struct cpuset *cs
struct cpumask *pmask
382  当非pumask_intersects - (*src1p & *src2p) != 0*@src1p: the first input*@src2p: the second input循环
383  cs等于parent_cs(cs)
393  返回
396  pumask_and - *dstp = *src1p & *src2p*@dstp: the cpumask result*@src1p: the first input*@src2p: the second input* If *@dstp is empty, returns 0, else returns 1
调用者
名称描述
cpuset_attach
cpuset_cpus_allowedpuset_cpus_allowed - return cpus_allowed mask from a tasks cpuset