Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:btf_resolve_helper_id

Proto:int btf_resolve_helper_id(struct bpf_verifier_log *log, const struct bpf_func_proto *fn, int arg)

Type:int

Parameter:

TypeParameterName
struct bpf_verifier_log *log
const struct bpf_func_proto *fn
intarg
3950  btf_id = BTF ids of arguments [arg]
3953  If arg_type[arg] != pointer to in-kernel struct Then Return -EINVAL
3956  ret = READ_ONCE( * btf_id)
3957  If ret Then Return ret
3960  ret = __btf_resolve_helper_id(log, func, arg)
3961  If Not ret Then
3963  bpf_log(log, "BTF resolution bug\n")
3964  Return -EFAULT
3966  WRITE_ONCE( * btf_id, ret)
3967  Return ret
Caller
NameDescribe
check_helper_call