函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:bpf_prog_detach

函数原型:static int bpf_prog_detach(const union bpf_attr *attr)

返回类型:int

参数:

类型参数名称
const union bpf_attr *attr
2148  如果非操作权限检查则返回:负EPERM
2151  如果helper macro to check that unused fields 'union bpf_attr' are zero (BPF_PROG_DETACH)则返回:负EINVAL
2155  :attach_type恒等于BPF_CGROUP_INET_INGRESS
2156  :attach_type恒等于BPF_CGROUP_INET_EGRESS
2157  ptype等于BPF_PROG_TYPE_CGROUP_SKB
2158  退出
2159  :attach_type恒等于BPF_CGROUP_INET_SOCK_CREATE
2160  :attach_type恒等于BPF_CGROUP_INET4_POST_BIND
2161  :attach_type恒等于BPF_CGROUP_INET6_POST_BIND
2162  ptype等于BPF_PROG_TYPE_CGROUP_SOCK
2163  退出
2164  :attach_type恒等于BPF_CGROUP_INET4_BIND
2165  :attach_type恒等于BPF_CGROUP_INET6_BIND
2166  :attach_type恒等于BPF_CGROUP_INET4_CONNECT
2167  :attach_type恒等于BPF_CGROUP_INET6_CONNECT
2168  :attach_type恒等于BPF_CGROUP_UDP4_SENDMSG
2169  :attach_type恒等于BPF_CGROUP_UDP6_SENDMSG
2170  :attach_type恒等于BPF_CGROUP_UDP4_RECVMSG
2171  :attach_type恒等于BPF_CGROUP_UDP6_RECVMSG
2172  ptype等于BPF_PROG_TYPE_CGROUP_SOCK_ADDR
2173  退出
2174  :attach_type恒等于BPF_CGROUP_SOCK_OPS
2175  ptype等于BPF_PROG_TYPE_SOCK_OPS
2176  退出
2177  :attach_type恒等于BPF_CGROUP_DEVICE
2178  ptype等于BPF_PROG_TYPE_CGROUP_DEVICE
2179  退出
2180  :attach_type恒等于BPF_SK_MSG_VERDICT
2181  返回:sock_map_get_from_fd(attr, NULL)
2182  :attach_type恒等于BPF_SK_SKB_STREAM_PARSER
2183  :attach_type恒等于BPF_SK_SKB_STREAM_VERDICT
2184  返回:sock_map_get_from_fd(attr, NULL)
2185  :attach_type恒等于BPF_LIRC_MODE2
2186  返回:lirc_prog_detach(attr)
2187  :attach_type恒等于BPF_FLOW_DISSECTOR
2188  返回:skb_flow_dissector_bpf_prog_detach(attr)
2189  :attach_type恒等于BPF_CGROUP_SYSCTL
2190  ptype等于BPF_PROG_TYPE_CGROUP_SYSCTL
2191  退出
2192  :attach_type恒等于BPF_CGROUP_GETSOCKOPT
2193  :attach_type恒等于BPF_CGROUP_SETSOCKOPT
2194  ptype等于BPF_PROG_TYPE_CGROUP_SOCKOPT
2195  退出
2196  默认
2197  返回:负EINVAL
2200  返回:cgroup_bpf_prog_detach(attr, ptype)