Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:bpf_prog_get_ok

Proto:bool bpf_prog_get_ok(struct bpf_prog *prog, enum bpf_prog_type *attach_type, bool attach_drv)

Type:bool

Parameter:

TypeParameterName
struct bpf_prog *prog
enum bpf_prog_type *attach_type
boolattach_drv
1569  If Not attach_type Then Return true
1572  If Type of BPF program != attach_type Then Return false
1574  If bpf_prog_is_dev_bound( Auxiliary fields ) && Not attach_drv Then Return false
1577  Return true
Caller
NameDescribe
__bpf_prog_get
__get_prog_inode