Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:btf_func_proto_check_meta

Proto:static s32 btf_func_proto_check_meta(struct btf_verifier_env *env, const struct btf_type *t, u32 meta_left)

Type:s32

Parameter:

TypeParameterName
struct btf_verifier_env *env
const struct btf_type *t
u32meta_left
2531  meta_needed = btf_type_vlen(t) * sizeof(structbtf_param)
2533  If meta_left < meta_needed Then
2534  btf_verifier_log_basic(env, t, "meta_left:%u meta_needed:%u", meta_left, meta_needed)
2537  Return -EINVAL
2540  If name_off Then
2541  btf_verifier_log_type(env, t, "Invalid name")
2542  Return -EINVAL
2545  If btf_type_kflag(t) Then
2546  btf_verifier_log_type(env, t, "Invalid btf_info kind_flag")
2547  Return -EINVAL
2550  btf_verifier_log_type(env, t, NULL)
2552  Return meta_needed