Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__bpf_prog_get

Proto:static struct bpf_prog *__bpf_prog_get(u32 ufd, enum bpf_prog_type *attach_type, bool attach_drv)

Type:struct bpf_prog

Parameter:

TypeParameterName
u32ufd
enum bpf_prog_type *attach_type
boolattach_drv
1583  f = fdget(ufd)
1586  prog = ____bpf_prog_get(f)
1587  If IS_ERR(prog) Then Return prog
1589  If Not bpf_prog_get_ok(prog, attach_type, attach_drv) Then
1590  prog = ERR_PTR( - EINVAL)
1591  Go to out
1594  bpf_prog_inc(prog)
1595  out :
1596  fdput(f)
1597  Return prog
Caller
NameDescribe
bpf_prog_get
bpf_prog_get_type_dev