Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\bpf\syscall.c Create Date:2022-07-28 12:51:42
Last Modify:2022-05-19 18:06:12 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:__bpf_map_area_alloc

Proto:static void *__bpf_map_area_alloc(u64 size, int numa_node, bool mmapable)

Type:void

Parameter:

TypeParameterName
u64size
intnuma_node
boolmmapable
143  flags = DOC: Action modifiers* Action modifiers* ~~~~~~~~~~~~~~~~* %__GFP_NOWARN suppresses allocation failure reports.* %__GFP_COMP address compound page metadata.* %__GFP_ZERO returns a zeroed page on success. | __GFP_ZERO
146  If size >= SIZE_MAX Then Return NULL
150  If Not mmapable && size <= PAGE_SIZE << PAGE_ALLOC_COSTLY_ORDER is the order at which allocations are deemed* costly to service. That is between allocation orders which should* coalesce naturally under reasonable reclaim pressure and those which* will not. Then
151  area = kmalloc_node(size, GFP_USER | __GFP_NORETRY | flags, numa_node)
153  If (area != NULL) Then Return area
156  If mmapable Then
157  BUG_ON(!st whether an address (unsigned long or pointer) is aligned to PAGE_SIZE (size))
158  Return vmalloc_user_node_flags(size, numa_node, GFP_KERNEL | __GFP_RETRY_MAYFAIL | flags)
161  Return __vmalloc_node_flags_caller(size, numa_node, GFP_KERNEL | __GFP_RETRY_MAYFAIL | flags, __builtin_return_address(0))
Caller
NameDescribe
bpf_map_area_alloc
bpf_map_area_mmapable_alloc