Defined in 1 files as a function:

Referenced in 15 files:

Smatch caller information:

drivers/net/netkit.c netkit_prog_attach() -> bpf_prog_get_type()

Type Parameter Key Value
PARAM_VALUE 1 type 3,9,18,25,28,30
CAPPED_DATA 1 type 1
UNITS 1 type unit_array_size
LOCK2 global &rtnl_mutex

kernel/bpf/net_namespace.c netns_bpf_prog_detach() -> bpf_prog_get_type()

Type Parameter Key Value
PARAM_VALUE 1 type 22
DATA_SOURCE 1 type $1

net/kcm/kcmsock.c kcm_attach_ioctl() -> bpf_prog_get_type()

Type Parameter Key Value
PARAM_VALUE 1 type 1
USER_DATA 0 ufd 0-u32max

net/netfilter/xt_bpf.c __bpf_mt_check_fd() -> bpf_prog_get_type()

Type Parameter Key Value
PARAM_VALUE 1 type 1
DATA_SOURCE 0 ufd $0
RX_PATH
TASK_NOT_RUNNING
USER_DATA 0 ufd 0-u32max[u]

net/packet/af_packet.c fanout_set_data_ebpf() -> bpf_prog_get_type()

Type Parameter Key Value
PARAM_VALUE 1 type 1
RX_PATH
TASK_NOT_RUNNING
USER_DATA 0 ufd 0-u32max
HALF_LOCKED2 &smc->clcsock_release_lock

net/core/filter.c __get_bpf() -> bpf_prog_get_type()

Type Parameter Key Value
PARAM_VALUE 1 type 1
DATA_SOURCE 0 ufd $0
RX_PATH
TASK_NOT_RUNNING
USER_DATA 0 ufd 0-u32max
HALF_LOCKED2 sk
HALF_LOCKED2 sk

net/core/filter.c sk_reuseport_attach_bpf() -> bpf_prog_get_type()

Type Parameter Key Value
PARAM_VALUE 1 type 1
DATA_SOURCE 0 ufd $0
RX_PATH
TASK_NOT_RUNNING
USER_DATA 0 ufd 0-u32max
HALF_LOCKED2 sk
HALF_LOCKED2 sk

net/core/filter.c sk_reuseport_attach_bpf() -> bpf_prog_get_type()

Type Parameter Key Value
PARAM_VALUE 1 type 21
DATA_SOURCE 0 ufd $0
RX_PATH
TASK_NOT_RUNNING
USER_DATA 0 ufd 0-u32max
HALF_LOCKED2 sk
HALF_LOCKED2 sk

kernel/bpf/syscall.c bpf_prog_attach() -> bpf_prog_get_type()

Type Parameter Key Value
PARAM_VALUE 1 type 3,6,8-9,13-16,18,20,22-23,25-26,29-30
DATA_SOURCE 1 type r attach_type_to_prog_type

kernel/bpf/syscall.c bpf_prog_detach() -> bpf_prog_get_type()

Type Parameter Key Value
PARAM_VALUE 0 ufd 1-u32max
PARAM_VALUE 1 type 3
DATA_SOURCE 1 type r attach_type_to_prog_type

kernel/bpf/syscall.c kern_sys_bpf() -> bpf_prog_get_type()

Type Parameter Key Value
PARAM_VALUE 1 type 31

kernel/bpf/cpumap.c __cpu_map_load_bpf_program() -> bpf_prog_get_type()

Type Parameter Key Value
PARAM_VALUE 0 ufd 1-s32max
PARAM_VALUE 1 type 6
DATA_SOURCE 0 ufd $2

net/core/lwt_bpf.c bpf_parse_prog() -> bpf_prog_get_type()

Type Parameter Key Value
PARAM_VALUE 1 type 10-12
DATA_SOURCE 0 ufd r nla_get_u32
DATA_SOURCE 1 type $2
HARD_MAX 1 type 12
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &net->rtnl_mutex
HALF_LOCKED2 global &rtnl_mutex

kernel/bpf/cgroup.c cgroup_bpf_prog_attach() -> bpf_prog_get_type()

Type Parameter Key Value
PARAM_VALUE 1 type 8-9,13,15,18,23,25,29
DATA_SOURCE 1 type $1

kernel/bpf/cgroup.c cgroup_bpf_prog_detach() -> bpf_prog_get_type()

Type Parameter Key Value
PARAM_VALUE 1 type 8-9,13,15,18,23,25,29
DATA_SOURCE 1 type $1

drivers/net/tun.c tun_set_ebpf() -> bpf_prog_get_type()

Type Parameter Key Value
PARAM_VALUE 0 ufd 0-4294967294
PARAM_VALUE 1 type 1
USER_DATA 0 ufd 0-4294967294
LOCK2 global &rtnl_mutex

drivers/media/rc/bpf-lirc.c lirc_prog_detach() -> bpf_prog_get_type()

Type Parameter Key Value
PARAM_VALUE 1 type 20

net/ipv6/seg6_local.c parse_nla_bpf() -> bpf_prog_get_type()

Type Parameter Key Value
PARAM_VALUE 1 type 19
DATA_SOURCE 0 ufd r nla_get_u32
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &net->rtnl_mutex
HALF_LOCKED2 global &rtnl_mutex

net/sched/act_bpf.c tcf_bpf_init_from_efd() -> bpf_prog_get_type()

Type Parameter Key Value
PARAM_VALUE 1 type 4
DATA_SOURCE 0 ufd r nla_get_u32
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &net->xfrm.xfrm_cfg_mutex
HALF_LOCKED2 global &audit_cmd_mutex.lock
HALF_LOCKED2 global &cb_lock
HALF_LOCKED2 global &crypto_cfg_mutex
HALF_LOCKED2 global &hwsim_phys_lock
HALF_LOCKED2 global &rtnl_mutex
HALF_LOCKED2 global &rx_queue_mutex

kernel/bpf/tcx.c tcx_prog_attach() -> bpf_prog_get_type()

Type Parameter Key Value
PARAM_VALUE 1 type 3,9,18,25,28,30
CAPPED_DATA 1 type 1
UNITS 1 type unit_array_size
LOCK2 global &rtnl_mutex