函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Package topology (also see the load-balance blurb in fair

函数原型:static struct *get_group(int cpu, struct sd_data *sdd)

返回类型:struct

参数:

类型参数名称
intcpu
struct sd_data *sdd
1059  sd等于per_cpu_ptr(sd, cpu)
1060  child等于child
1064  如果childcpu等于Uniprocessor. Assume all masks are "1".
1067  sg等于per_cpu_ptr(sg, cpu)
1068  sgc等于per_cpu_ptr(sgc, cpu)
1071  already_visited等于atomic_inc_return( & ref)大于1
1073  WARN_ON(already_visited != (atomic_inc_return( & ref) > 1))
1076  如果already_visited则返回:sg
1079  如果child
1080  pumask_copy - *dstp = *srcp*@dstp: the result*@srcp: the input cpumask
1081  pumask_copy - *dstp = *srcp*@dstp: the result*@srcp: the input cpumask
1082  否则
1083  设置CPU信息
1084  设置CPU信息
1087  capacity等于SCHED_CAPACITY_SCALEpumask_weight - Count of bits in *srcp*@srcp: the cpumask to count bits (< nr_cpu_ids) in.
1088  min_capacity等于SCHED_CAPACITY_SCALE
1089  max_capacity等于SCHED_CAPACITY_SCALE
1091  返回:sg
调用者
名称描述
build_sched_groupsld_sched_groups will build a circular linked list of the groups* covered by the given span, will set each group's ->cpumask correctly,* and will initialize their ->sgc.* Assumes the sched_domain tree is fully constructed