Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:btf_struct_resolve

Proto:static int btf_struct_resolve(struct btf_verifier_env *env, const struct resolve_vertex *v)

Type:int

Parameter:

TypeParameterName
struct btf_verifier_env *env
const struct resolve_vertex *v
2222  If next_member Then
2227  last_member = btf_type_member(t) + next_member - 1
2228  last_member_type_id = type
2229  If WARN_ON_ONCE(!env_type_is_resolved(env, last_member_type_id)) Then Return -EINVAL
2233  last_member_type = btf_type_by_id(btf, last_member_type_id)
2235  If btf_type_kflag(t) Then err = check_kflag_member(env, t, last_member, last_member_type)
2239  Else err = check_member(env, t, last_member, last_member_type)
2243  If err Then Return err
2248  member_type_id = type
2249  member_type = btf_type_by_id(btf, member_type_id)
2254  btf_verifier_log_member(env, t, member, "Invalid member")
2256  Return -EINVAL
2265  If btf_type_kflag(t) Then err = check_kflag_member(env, t, member, member_type)
2269  Else err = check_member(env, t, member, member_type)
2273  If err Then Return err
2277  env_stack_pop_resolved(env, 0, 0)
2279  Return 0