函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Set up scheduler domains and groups. For now this just excludes isolated* CPUs, but could be used to exclude other special cases in the future.

函数原型:int sched_init_domains(const struct cpumask *cpu_map)

返回类型:int

参数:

类型参数名称
const struct cpumask *cpu_map
2141  zalloc_cpumask_var( & Protected by sched_domains_mutex: , GFP_KERNEL)
2142  zalloc_cpumask_var( & sched_domains_tmpmask2, GFP_KERNEL)
2143  zalloc_cpumask_var( & Special case: If a kmalloc() of a doms_cur partition (array of* cpumask) fails, then fallback to a single sched domain,* as determined by the single cpumask fallback_doms., GFP_KERNEL)
2145  arch_update_cpu_topology lets virtualized architectures update the* CPU core maps. It is supposed to return 1 if the topology changed* or 0 if it stayed the same.
2146  Number of sched domains in 'doms_cur': 等于1
2147  Current sched domains: 等于alloc_sched_domains(Number of sched domains in 'doms_cur': )
2148  如果非Current sched domains: Current sched domains: 等于Special case: If a kmalloc() of a doms_cur partition (array of* cpumask) fails, then fallback to a single sched domain,* as determined by the single cpumask fallback_doms.
2150  pumask_and - *dstp = *src1p & *src2p*@dstp: the cpumask result*@src1p: the first input*@src2p: the second input* If *@dstp is empty, returns 0, else returns 1
2151  err等于Build sched domains for a given set of CPUs and attach the sched domains* to the individual CPUs
2152  register_sched_domain_sysctl()
2154  返回:err