函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:build_overlap_sched_groups

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

返回类型:int

参数:

类型参数名称
struct sched_domain *sd
intcpu
929  first等于NULL, last等于NULL
930  span等于sched_domain_span(sd)
931  covered等于Protected by sched_domains_mutex:
932  sdd等于private
936  清空全部CPU信息
941  如果测试CPU信息则继续下一循环
944  sibling等于per_cpu_ptr(sd, i)
956  如果非测试CPU信息则继续下一循环
959  sg等于XXX: This creates per-node group entries; since the load-balancer will* immediately access remote memory to construct this group's load-balance* statistics having the groups node local is of dubious benefit.
960  如果非sg则转到:fail
963  sg_span等于sched_group_span(sg)
964  pumask_or - *dstp = *src1p | *src2p*@dstp: the cpumask result*@src1p: the first input*@src2p: the second input
966  init_overlap_sched_group(sd, sg)
968  如果非firstfirst等于sg
970  如果lastnext等于sg
972  last等于sg
973  next等于first
975  groups等于first
977  返回:0
979  fail :
980  free_sched_groups(first, 0)
982  返回:负ENOMEM
调用者
名称描述
build_sched_domainsBuild sched domains for a given set of CPUs and attach the sched domains* to the individual CPUs