Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:mark_ptr_or_null_reg

Proto:static void mark_ptr_or_null_reg(struct bpf_func_state *state, struct bpf_reg_state *reg, u32 id, bool is_null)

Type:void

Parameter:

TypeParameterName
struct bpf_func_state *state
struct bpf_reg_state *reg
u32id
boolis_null
5856  If 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 Then
5867  If is_null Then
5870  If inner_map_meta Then
5873  Else if map_type == BPF_MAP_TYPE_XSKMAP Then
5876  Else
5886  If is_null Then
5893  Else if Not reg_may_point_to_spin_lock(reg) Then
Caller
NameDescribe
__mark_ptr_or_null_regs