Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:adjust_subprog_starts_after_remove

Proto:static int adjust_subprog_starts_after_remove(struct bpf_verifier_env *env, u32 off, u32 cnt)

Type:int

Parameter:

TypeParameterName
struct bpf_verifier_env *env
u32off
u32cnt
8411  When i < subprog_cnt cycle If insn idx of function entry point >= off Then
8413  Break
8415  When j < subprog_cnt cycle If insn idx of function entry point >= off + cnt Then
8417  Break
8421  If insn idx of function entry point != off + cnt Then j--
8424  If j > i Then
8425  aux = Auxiliary fields
8429  move = subprog_cnt + 1 - j
8431  memmove(subprog_info + i, subprog_info + j, size of subprog_info * move)
8434  subprog_cnt -= j - i
8437  If func_info Then
8438  move = func_info_cnt - j
8440  memmove(func_info + i, func_info + j, size of func_info * move)
8443  func_info_cnt -= j - i
8448  Else
8450  If insn idx of function entry point == off Then i++
8455  When i <= subprog_cnt cycle insn idx of function entry point -= cnt
8458  Return 0
Caller
NameDescribe
verifier_remove_insns