函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\bpf\verifier.c Create Date:2022-07-27 14:08:54
Last Modify:2022-05-19 20:02:10 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:find_linfo

函数原型:static const struct bpf_line_info *find_linfo(const struct bpf_verifier_env *env, u32 insn_off)

返回类型:struct bpf_line_info

参数:

类型参数名称
const struct bpf_verifier_env *env
u32insn_off
248  prog等于BPF program being verified
249  nr_linfo等于nr_linfo
251  如果非nr_linfoinsn_off大于等于 Number of filter blocks 则返回:NULL
254  linfo等于 bpf_line_info loaded from userspace. linfo->insn_off * has the xlated insn offset. * Both the main and sub prog share the same linfo. * The subprog can access its first linfo by * using the linfo_idx.
255 i小于nr_linfo循环如果insn_off小于insn_off
257  退出
259  返回:linfo[i - 1]
调用者
名称描述
verbose_linfo