函数逻辑报告 |
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 |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Package topology (also see the load-balance blurb in fair
函数原型:static struct *get_group(int cpu, struct sd_data *sdd)
返回类型:struct
参数:
类型 | 参数 | 名称 |
---|---|---|
int | cpu | |
struct sd_data * | sdd |
1059 | sd等于per_cpu_ptr(sd, cpu) |
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则 |
1082 | 否则 |
1087 | capacity等于SCHED_CAPACITY_SCALE乘pumask_weight - Count of bits in *srcp*@srcp: the cpumask to count bits (< nr_cpu_ids) in. |
1091 | 返回:sg |
名称 | 描述 |
---|---|
build_sched_groups | ld_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 |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |