Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\apic\x2apic_cluster.c Create Date:2022-07-28 08:35:04
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:alloc_clustermask

Proto:static int alloc_clustermask(unsigned int cpu, int node)

Type:int

Parameter:

TypeParameterName
unsigned intcpu
intnode
126  If per_cpu(cluster_masks, cpu) Then Return 0
132  If cluster_hotplug_mask Then
133  If node == node Then Return 0
135  free previously allocated memory
138  cluster_hotplug_mask = 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
140  If Not cluster_hotplug_mask Then Return -ENOMEM
142  node = node
143  Return 0
Caller
NameDescribe
x2apic_prepare_cpu