Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__sdt_alloc

Proto:static int __sdt_alloc(const struct cpumask *cpu_map)

Type:int

Parameter:

TypeParameterName
const struct cpumask *cpu_map
1753  sdd = data
1755  sd = alloc_percpu(structsched_domain * )
1756  If Not sd Then Return -ENOMEM
1759  sds = alloc_percpu(structsched_domain_shared * )
1760  If Not sds Then Return -ENOMEM
1763  sg = alloc_percpu(structsched_group * )
1764  If Not sg Then Return -ENOMEM
1767  sgc = alloc_percpu(structsched_group_capacity * )
1768  If Not sgc Then Return -ENOMEM
1777  sd = kzalloc_node - allocate zeroed memory from a particular memory node.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc).*@node: memory node from which to allocate
1779  If Not sd Then Return -ENOMEM
1782  per_cpu_ptr(sd, j) = sd
1784  sds = kzalloc_node - allocate zeroed memory from a particular memory node.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc).*@node: memory node from which to allocate
1786  If Not sds Then Return -ENOMEM
1789  per_cpu_ptr(sds, j) = sds
1791  sg = kzalloc_node - allocate zeroed memory from a particular memory node.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc).*@node: memory node from which to allocate
1793  If Not sg Then Return -ENOMEM
1796  next = sg
1798  per_cpu_ptr(sg, j) = sg
1800  sgc = kzalloc_node - allocate zeroed memory from a particular memory node.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc).*@node: memory node from which to allocate
1802  If Not sgc Then Return -ENOMEM
1809  per_cpu_ptr(sgc, j) = sgc
1813  Return 0
Caller
NameDescribe
__visit_domain_allocation_hell