Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:btf_func_check

Proto:static int btf_func_check(struct btf_verifier_env *env, const struct btf_type *t)

Type:int

Parameter:

TypeParameterName
struct btf_verifier_env *env
const struct btf_type *t
2961  btf = btf
2962  proto_type = btf_type_by_id(btf, type)
2964  If Not proto_type || Not btf_type_is_func_proto(proto_type) Then
2965  btf_verifier_log_type(env, t, "Invalid type_id")
2966  Return -EINVAL
2969  args = proto_type + 1
2970  nr_args = btf_type_vlen(proto_type)
2971  When i < nr_args cycle
2972  If Not name_off && type Then
2973  btf_verifier_log_type(env, t, "Invalid arg#%u", i + 1)
2974  Return -EINVAL
2978  Return 0
Caller
NameDescribe
btf_check_all_types