函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:mpute_effective_cpumask - Compute the effective cpumask of the cpuset*@new_cpus: the temp variable for the new effective_cpus mask*@cs: the cpuset the need to recompute the new effective_cpus mask*@parent: the parent cpuset* If the parent has subpartition

函数原型:static void compute_effective_cpumask(struct cpumask *new_cpus, struct cpuset *cs, struct cpuset *parent)

返回类型:void

参数:

类型参数名称
struct cpumask *new_cpus
struct cpuset *cs
struct cpuset *parent
1056  如果 number of CPUs in subparts_cpus
1057  pumask_or - *dstp = *src1p | *src2p*@dstp: the cpumask result*@src1p: the first input*@src2p: the second input
1059  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
1060  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
1061  否则
1062  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
调用者
名称描述
update_cpumasks_hierpdate_cpumasks_hier - Update effective cpumasks and tasks in the subtree*@cs: the cpuset to consider*@tmp: temp variables for calculating effective_cpus & partition setup* When congifured cpumask is changed, the effective cpumasks of this cpuset
cpuset_hotplug_update_taskspuset_hotplug_update_tasks - update tasks in a cpuset for hotunplug*@cs: cpuset in interest*@tmp: the tmpmasks structure pointer* Compare @cs's cpu and mem masks against top_cpuset and if some have gone* offline, update @cs accordingly