函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:mark_ptr_or_null_reg

函数原型:static void mark_ptr_or_null_reg(struct bpf_func_state *state, struct bpf_reg_state *reg, u32 id, bool is_null)

返回类型:void

参数:

类型参数名称
struct bpf_func_state *state
struct bpf_reg_state *reg
u32id
boolis_null
5856  如果reg_type_may_be_null( Ordering of fields matters. See states_equal() )且 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恒等于id
5867  如果is_null
5870  如果inner_map_meta
5873  否则如果map_type恒等于BPF_MAP_TYPE_XSKMAP
5876  否则
5886  如果is_null
5893  否则如果非reg_may_point_to_spin_lock(reg)则
调用者
名称描述
__mark_ptr_or_null_regs