Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\irq\affinity.c Create Date:2022-07-28 10:15:49
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:alloc_node_to_cpumask

Proto:static cpumask_var_t *alloc_node_to_cpumask(void)

Type:cpumask_var_t

Parameter:Nothing

48  masks = kcalloc - allocate memory for an array. The memory is set to zero.*@n: number of elements.*@size: element size.*@flags: the type of memory to allocate (see kmalloc).
49  If Not masks Then Return NULL
52  When node < nr_node_ids cycle
53  If Not zalloc_cpumask_var( & masks[node], GFP_KERNEL) Then Go to out_unwind
57  Return masks
59  out_unwind :
60  When --node >= 0 cycle
61  free_cpumask_var(masks[node])
62  kfree - free previously allocated memory*@objp: pointer returned by kmalloc.* If @objp is NULL, no operation is performed.* Don't free memory not originally allocated by kmalloc()* or you will run into trouble.
63  Return NULL
Caller
NameDescribe
irq_build_affinity_masksld affinity in two stages:* 1) spread present CPU on these vectors* 2) spread other possible CPUs on these vectors