Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:bpf_array_alloc_percpu

Proto:static int bpf_array_alloc_percpu(struct bpf_array *array)

Type:int

Parameter:

TypeParameterName
struct bpf_array *array
31  __percpu * ptr
34  When i < max_entries cycle
35  ptr = __alloc_percpu_gfp(elem_size, 8, GFP_USER | 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.)
37  If Not ptr Then
39  Return -ENOMEM
41  pptrs[i] = ptr
42  cond_resched()
45  Return 0
Caller
NameDescribe
array_map_alloc