函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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

函数原型:static int build_sched_groups(struct sched_domain *sd, int cpu)

返回类型:int

参数:

类型参数名称
struct sched_domain *sd
intcpu
1104  struct first = NULL, * last = NULL
1105  sdd等于private
1106  span等于sched_domain_span(sd)
1110  lockdep_assert_held( & SPDX-License-Identifier: GPL-2.0)
1111  covered等于Protected by sched_domains_mutex:
1113  清空全部CPU信息
1118  如果测试CPU信息则继续下一循环
1121  sg等于Package topology (also see the load-balance blurb in fair
1123  pumask_or - *dstp = *src1p | *src2p*@dstp: the cpumask result*@src1p: the first input*@src2p: the second input
1125  如果非firstfirst等于sg
1127  如果lastnext等于sg
1129  last等于sg
1131  next等于first
1132  groups等于first
1134  返回:0
调用者
名称描述
build_sched_domainsBuild sched domains for a given set of CPUs and attach the sched domains* to the individual CPUs