Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\bpf\btf.c Create Date:2022-07-28 13:17:49
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:env_stack_push

Proto:static int env_stack_push(struct btf_verifier_env *env, const struct btf_type *t, u32 type_id)

Type:int

Parameter:

TypeParameterName
struct btf_verifier_env *env
const struct btf_type *t
u32type_id
998  If top_stack == MAX_RESOLVE_DEPTH Then Return -E2BIG
1001  If visit_states[type_id] != NOT_VISITED Then Return -EEXIST
1004  visit_states[type_id] = VISITED
1006  v = stack[top_stack++]
1007  t = t
1008  type_id = type_id
1009  next_member = 0
1011  If resolve_mode == To Be Determined Then
1012  If btf_type_is_ptr(t) Then resolve_mode = Resolving for Pointer
1014  Else if is only a special case of struct:* all its offsetof(member) == 0 || btf_type_is_array(t) Then resolve_mode = Resolving for struct/union * or array
1018  Return 0
Caller
NameDescribe
btf_modifier_resolve
btf_var_resolve
btf_ptr_resolve
btf_array_resolve
btf_struct_resolve
btf_datasec_resolve
btf_resolve