Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:build_sched_domain

Proto:static struct sched_domain *build_sched_domain(struct sched_domain_topology_level *tl, const struct cpumask *cpu_map, struct sched_domain_attr *attr, struct sched_domain *child, int dflags, int cpu)

Type:struct sched_domain

Parameter:

TypeParameterName
struct sched_domain_topology_level *tl
const struct cpumask *cpu_map
struct sched_domain_attr *attr
struct sched_domain *child
intdflags
intcpu
1856  sd = sd_init(tl, cpu_map, child, dflags, cpu)
1858  If child Then
1859  level = level + 1
1860  sched_domain_level_max = max - return maximum of two values of the same or compatible types*@x: first value*@y: second value(sched_domain_level_max, level)
1861  parent = sd
1865  pr_err("BUG: arch topology borken\n")
1877  set_domain_attribute(sd, attr)
1879  Return sd
Caller
NameDescribe
build_sched_domainsBuild sched domains for a given set of CPUs and attach the sched domains* to the individual CPUs