Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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.

Proto:int sched_init_domains(const struct cpumask *cpu_map)

Type:int

Parameter:

TypeParameterName
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  If Not Current sched domains: Then 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  Return err