Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:btf_get_by_fd

Proto:struct btf *btf_get_by_fd(int fd)

Type:struct btf

Parameter:

TypeParameterName
intfd
4199  f = fdget(fd)
4201  If Not file Then Return ERR_PTR( - EBADF)
4204  If f_op != btf_fops Then
4205  fdput(f)
4206  Return ERR_PTR( - EINVAL)
4209  btf = needed for tty driver, and maybe others
4210  _inc - increment a refcount*@r: the refcount to increment* Similar to atomic_inc(), but will saturate at REFCOUNT_SATURATED and WARN
4211  fdput(f)
4213  Return btf
Caller
NameDescribe
check_btf_info