函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Build the balance mask; it contains only those CPUs that can arrive at this* group and should be considered to continue balancing

函数原型:static void build_balance_mask(struct sched_domain *sd, struct sched_group *sg, struct cpumask *mask)

返回类型:void

参数:

类型参数名称
struct sched_domain *sd
struct sched_group *sg
struct cpumask *mask
842  sg_span等于sched_group_span(sg)
843  sdd等于private
847  清空全部CPU信息
850  sibling等于per_cpu_ptr(sd, i)
857  如果非child则继续下一循环
861  如果非pumask_equal - *src1p == *src2p*@src1p: the first input*@src2p: the second input则继续下一循环
864  设置CPU信息
868  WARN_ON_ONCE(pumask_empty - *srcp == 0*@srcp: the cpumask to that all cpus < nr_cpu_ids are clear.)
调用者
名称描述
init_overlap_sched_group