函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:build_sched_domain

函数原型: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)

返回类型:struct sched_domain

参数:

类型参数名称
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  如果child
1859  level等于level加1
1860  sched_domain_level_max等于两数取大(sched_domain_level_max, level)
1861  parent等于sd
1865  打印错误信息("BUG: arch topology borken\n")
1877  set_domain_attribute(sd, attr)
1879  返回:sd
调用者
名称描述
build_sched_domainsBuild sched domains for a given set of CPUs and attach the sched domains* to the individual CPUs