函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\bpf\btf.c Create Date:2022-07-27 14:34:54
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:env_type_is_resolve_sink

函数原型:static bool env_type_is_resolve_sink(const struct btf_verifier_env *env, const struct btf_type *next_type)

返回类型:bool

参数:

类型参数名称
const struct btf_verifier_env *env
const struct btf_type *next_type
966  :resolve_mode恒等于 To Be Determined
968  返回:非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  :resolve_mode恒等于 Resolving for Pointer
973  返回:非btf_type_is_modifier(next_type)且非btf_type_is_ptr(next_type)
975  :resolve_mode恒等于 Resolving for struct/union * or array
979  返回:非btf_type_is_modifier(next_type)且非btf_type_is_array(next_type)且非 is only a special case of struct:* all its offsetof(member) == 0
982  默认
983  BUG()
调用者
名称描述
btf_modifier_resolve
btf_var_resolve
btf_ptr_resolve
btf_array_resolve
btf_struct_resolve
btf_datasec_resolve