函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Unmodified PTR_TO_PACKET[_META,_END] register from ctx access.

函数原型:static bool reg_is_init_pkt_pointer(const struct bpf_reg_state *reg, enum bpf_reg_type which)

返回类型:bool

参数:

类型参数名称
const struct bpf_reg_state *reg
enum bpf_reg_typewhich
974  返回: Ordering of fields matters. See states_equal() 恒等于which For PTR_TO_PACKET, used to find other pointers with the same variable * offset, so they can share range knowledge. * For PTR_TO_MAP_VALUE_OR_NULL this is used to share which map value we * came from, when one is tested for != NULL. * For PTR_TO_SOCKET thi恒等于0且 Fixed part of pointer offset, pointer types only 恒等于0且Returns true if @a == tnum_const(@b)
调用者
名称描述
try_match_pkt_pointers