Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:bpf_prog_load_check_attach

Proto:static int bpf_prog_load_check_attach(enum bpf_prog_type prog_type, enum bpf_attach_type expected_attach_type, u32 btf_id, u32 prog_fd)

Type:int

Parameter:

TypeParameterName
enum bpf_prog_typeprog_type
enum bpf_attach_typeexpected_attach_type
u32btf_id
u32prog_fd
1644  Case prog_type == BPF_PROG_TYPE_TRACING
1645  If btf_id > Max # of type identifier Then Return -EINVAL
1647  Break
1648  Default
1649  If btf_id || prog_fd Then Return -EINVAL
1651  Break
1660  Return 0
1661  Default
1662  Return -EINVAL
1674  Return 0
1675  Default
1676  Return -EINVAL
1682  Return 0
1683  Default
1684  Return -EINVAL
1690  Return 0
1691  Default
1692  Return -EINVAL
1694  Default
1695  Return 0
Caller
NameDescribe
bpf_prog_load