Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\sched\topology.c Create Date:2022-07-28 09:42:07
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:build_overlap_sched_groups

Proto:static int build_overlap_sched_groups(struct sched_domain *sd, int cpu)

Type:int

Parameter:

TypeParameterName
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  pumask_clear - clear all cpus (< nr_cpu_ids) in a cpumask*@dstp: the cpumask pointer
941  If pumask_test_cpu - test for a cpu in a cpumask*@cpu: cpu number (< nr_cpu_ids)*@cpumask: the cpumask pointer* Returns 1 if @cpu is set in @cpumask, else returns 0 Then Continue
944  sibling = per_cpu_ptr(sd, i)
956  If Not pumask_test_cpu - test for a cpu in a cpumask*@cpu: cpu number (< nr_cpu_ids)*@cpumask: the cpumask pointer* Returns 1 if @cpu is set in @cpumask, else returns 0 Then Continue
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  If Not sg Then Go to 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  If Not first Then first = sg
970  If last Then next = sg
972  last = sg
973  next = first
975  groups = first
977  Return 0
979  fail :
980  free_sched_groups(first, 0)
982  Return -ENOMEM
Caller
NameDescribe
build_sched_domainsBuild sched domains for a given set of CPUs and attach the sched domains* to the individual CPUs