Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\bpf\syscall.c Create Date:2022-07-28 12:54:45
Last Modify:2022-05-19 18:06:12 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:bpf_btf_get_info_by_fd

Proto:static int bpf_btf_get_info_by_fd(struct btf *btf, const union bpf_attr *attr, union bpf_attr __user *uattr)

Type:int

Parameter:

TypeParameterName
struct btf *btf
const union bpf_attr *attr
union bpf_attr __user *uattr
2795  __user * uinfo = u64_to_user_ptr(info)
2796  info_len = info_len
2799  err = If we're handed a bigger struct than we know of, ensure all the unknown bits* are 0 - i.e. new user-space does not rely on any kernel feature extensions* we don't know about yet.* There is a ToCToU between this function call and the following
2800  If err Then Return err
2803  Return btf_get_info_by_fd(btf, attr, uattr)
Caller
NameDescribe
bpf_obj_get_info_by_fd