Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:find_prog_type

Proto:static int find_prog_type(enum bpf_prog_type type, struct bpf_prog *prog)

Type:int

Parameter:

TypeParameterName
enum bpf_prog_typetype
struct bpf_prog *prog
1294  If type >= ARRAY_SIZE - get the number of elements in array @arr*@arr: array to be sized(bpf_prog_types) Then Return -EINVAL
1296  type = array_index_nospec - sanitize an array index after a bounds check* For a code sequence like:* if (index < size) {* index = array_index_nospec(index, size);* val = array[index];* }* (type, ARRAY_SIZE - get the number of elements in array @arr*@arr: array to be sized(bpf_prog_types))
1297  ops = bpf_prog_types[type]
1298  If Not ops Then Return -EINVAL
1301  If Not bpf_prog_is_dev_bound( Auxiliary fields ) Then ops = ops
1303  Else ops = bpf_offload_prog_ops
1305  Type of BPF program = type
1306  Return 0
Caller
NameDescribe
bpf_prog_load