Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__get_type_size

Proto:static int __get_type_size(struct btf *btf, u32 btf_id, const struct btf_type **bad_type)

Type:int

Parameter:

TypeParameterName
struct btf *btf
u32btf_id
const struct btf_type **bad_type
3975  If Not btf_id Then Return 0
3978  t = btf_type_by_id(btf, btf_id)
3979  When t && btf_type_is_modifier(t) cycle
3980  t = btf_type_by_id(btf, type)
3981  If Not t Then
3982  bad_type = types[0]
3983  Return -EINVAL
3985  If btf_type_is_ptr(t) Then Return size of *
3988  If btf_type_is_int(t) || btf_type_is_enum(t) Then Return size
3990  bad_type = t
3991  Return -EINVAL
Caller
NameDescribe
btf_distill_func_proto