函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\bpf\syscall.c Create Date:2022-07-27 14:07:43
Last Modify:2022-05-19 18:06:12 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:bpf_btf_get_info_by_fd

函数原型:static int bpf_btf_get_info_by_fd(struct btf *btf, const union bpf_attr *attr, union bpf_attr __user *uattr)

返回类型:int

参数:

类型参数名称
struct btf *btf
const union bpf_attr *attr
union bpf_attr __user *uattr
2795  __useruinfo等于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  如果err则返回:err
2803  返回:btf_get_info_by_fd(btf, attr, uattr)
调用者
名称描述
bpf_obj_get_info_by_fd