函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:bpf_prog_query

函数原型:static int bpf_prog_query(const union bpf_attr *attr, union bpf_attr __user *uattr)

返回类型:int

参数:

类型参数名称
const union bpf_attr *attr
union bpf_attr __user *uattr
2208  如果非操作权限检查则返回:负EPERM
2210  如果helper macro to check that unused fields 'union bpf_attr' are zero (BPF_PROG_QUERY)则返回:负EINVAL
2212  如果query_flags按位与lags for BPF_PROG_QUERY 的反则返回:负EINVAL
2216  :attach_type恒等于BPF_CGROUP_INET_INGRESS
2217  :attach_type恒等于BPF_CGROUP_INET_EGRESS
2218  :attach_type恒等于BPF_CGROUP_INET_SOCK_CREATE
2219  :attach_type恒等于BPF_CGROUP_INET4_BIND
2220  :attach_type恒等于BPF_CGROUP_INET6_BIND
2221  :attach_type恒等于BPF_CGROUP_INET4_POST_BIND
2222  :attach_type恒等于BPF_CGROUP_INET6_POST_BIND
2223  :attach_type恒等于BPF_CGROUP_INET4_CONNECT
2224  :attach_type恒等于BPF_CGROUP_INET6_CONNECT
2225  :attach_type恒等于BPF_CGROUP_UDP4_SENDMSG
2226  :attach_type恒等于BPF_CGROUP_UDP6_SENDMSG
2227  :attach_type恒等于BPF_CGROUP_UDP4_RECVMSG
2228  :attach_type恒等于BPF_CGROUP_UDP6_RECVMSG
2229  :attach_type恒等于BPF_CGROUP_SOCK_OPS
2230  :attach_type恒等于BPF_CGROUP_DEVICE
2231  :attach_type恒等于BPF_CGROUP_SYSCTL
2232  :attach_type恒等于BPF_CGROUP_GETSOCKOPT
2233  :attach_type恒等于BPF_CGROUP_SETSOCKOPT
2234  退出
2235  :attach_type恒等于BPF_LIRC_MODE2
2236  返回:lirc_prog_query(attr, uattr)
2237  :attach_type恒等于BPF_FLOW_DISSECTOR
2238  返回:skb_flow_dissector_prog_query(attr, uattr)
2239  默认
2240  返回:负EINVAL
2243  返回:cgroup_bpf_prog_query(attr, uattr)