Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:bpf_prog_array_alloc

Proto:struct bpf_prog_array *bpf_prog_array_alloc(u32 prog_cnt, gfp_t flags)

Type:struct bpf_prog_array

Parameter:

TypeParameterName
u32prog_cnt
gfp_tflags
1860  If prog_cnt Then Return kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc).
1866  Return hdr
Caller
NameDescribe
bpf_prog_array_copy
compute_effective_progsmpute a chain of effective programs for a given cgroup:* start from the list of programs in this cgroup and add* all parent programs.* Note that parent's F_ALLOW_OVERRIDE-type program is yielding* to programs in this cgroup