Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:env_type_is_resolve_sink

Proto:static bool env_type_is_resolve_sink(const struct btf_verifier_env *env, const struct btf_type *next_type)

Type:bool

Parameter:

TypeParameterName
const struct btf_verifier_env *env
const struct btf_type *next_type
966  Case resolve_mode == To Be Determined
968  Return Not What types need to be resolved?* btf_type_is_modifier() is an obvious one.* btf_type_is_struct() because its member refers to* another type (through member->type).* btf_type_is_var() because the variable refers to* another type
969  Case resolve_mode == Resolving for Pointer
973  Return Not btf_type_is_modifier(next_type) && Not btf_type_is_ptr(next_type)
975  Case resolve_mode == Resolving for struct/union * or array
979  Return Not btf_type_is_modifier(next_type) && Not btf_type_is_array(next_type) && Not is only a special case of struct:* all its offsetof(member) == 0
982  Default
983  BUG()
Caller
NameDescribe
btf_modifier_resolve
btf_var_resolve
btf_ptr_resolve
btf_array_resolve
btf_struct_resolve
btf_datasec_resolve