Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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

Proto:static void guarantee_online_cpus(struct cpuset *cs, struct cpumask *pmask)

Type:void

Parameter:

TypeParameterName
struct cpuset *cs
struct cpumask *pmask
382  When Not pumask_intersects - (*src1p & *src2p) != 0*@src1p: the first input*@src2p: the second input cycle
383  cs = parent_cs(cs)
393  Return
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
Caller
NameDescribe
cpuset_attach
cpuset_cpus_allowedpuset_cpus_allowed - return cpus_allowed mask from a tasks cpuset