Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\bpf\verifier.c Create Date:2022-07-28 12:56:46
Last Modify:2022-05-19 20:02:10 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:add_subprog

Proto:static int add_subprog(struct bpf_verifier_env *env, int off)

Type:int

Parameter:

TypeParameterName
struct bpf_verifier_env *env
intoff
1168  insn_cnt = Number of filter blocks
1171  If off >= insn_cnt || off < 0 Then
1172  verbose(env, "call to invalid destination\n")
1173  Return -EINVAL
1175  ret = find_subprog(env, off)
1176  If ret >= 0 Then Return 0
1178  If subprog_cnt >= BPF_MAX_SUBPROGS Then
1179  verbose(env, "too many subprograms\n")
1180  Return -E2BIG
1182  insn idx of function entry point = off
1183  sort(subprog_info, subprog_cnt, size of subprog_info[0] , cmp_subprogs, NULL)
1185  Return 0
Caller
NameDescribe
check_subprogs