函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:btf_ref_type_check_meta

函数原型:static int btf_ref_type_check_meta(struct btf_verifier_env *env, const struct btf_type *t, u32 meta_left)

返回类型:int

参数:

类型参数名称
struct btf_verifier_env *env
const struct btf_type *t
u32meta_left
1643  如果btf_type_vlen(t)则
1644  btf_verifier_log_type(env, t, "vlen != 0")
1645  返回:负EINVAL
1648  如果btf_type_kflag(t)则
1649  btf_verifier_log_type(env, t, "Invalid btf_info kind_flag")
1650  返回:负EINVAL
1653  如果非BTF_TYPE_ID_VALID(type)则
1654  btf_verifier_log_type(env, t, "Invalid type_id")
1655  返回:负EINVAL
1661  如果BTF_INFO_KIND( "info" bits arrangement * bits 0-15: vlen (e.g. # of struct's members) * bits 16-23: unused * bits 24-27: kind (e.g. int, ptr, array...etc) * bits 28-30: unused * bit 31: kind_flag, currently used by * struct, union and fwd)恒等于Typedef
1664  btf_verifier_log_type(env, t, "Invalid name")
1665  返回:负EINVAL
1667  否则
1668  如果name_off
1669  btf_verifier_log_type(env, t, "Invalid name")
1670  返回:负EINVAL
1674  btf_verifier_log_type(env, t, NULL)
1676  返回:0