Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:btf_new_fd

Proto:int btf_new_fd(const union bpf_attr *attr)

Type:int

Parameter:

TypeParameterName
const union bpf_attr *attr
4168  btf = btf_parse(u64_to_user_ptr( anonymous struct for BPF_BTF_LOAD ), btf_size, btf_log_level, u64_to_user_ptr(btf_log_buf), btf_log_size)
4172  If IS_ERR(btf) Then Return PTR_ERR(btf)
4175  ret = btf_alloc_id(btf)
4176  If ret Then
4177  btf_free(btf)
4178  Return ret
4187  ret = __btf_new_fd(btf)
4188  If ret < 0 Then btf_put(btf)
4191  Return ret