Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:alloc_sched_domains

Proto:cpumask_var_t *alloc_sched_domains(unsigned int ndoms)

Type:cpumask_var_t

Parameter:

TypeParameterName
unsigned intndoms
2113  doms = kmalloc_array - allocate memory for an array.*@n: number of elements.*@size: element size.*@flags: the type of memory to allocate (see kmalloc).
2114  If Not doms Then Return NULL
2116  When i < ndoms cycle
2117  If Not alloc_cpumask_var( & doms[i], GFP_KERNEL) Then
2119  Return NULL
2122  Return doms
Caller
NameDescribe
sched_init_domainsSet up scheduler domains and groups. For now this just excludes isolated* CPUs, but could be used to exclude other special cases in the future.
partition_sched_domains_lockedPartition sched domains as specified by the 'ndoms_new'* cpumasks in the array doms_new[] of cpumasks. This compares* doms_new[] to the current sched domain partitioning, doms_cur[].* It destroys each deleted domain and builds each new domain.