Defined in 1 files as a prototype:

Defined in 2 files as a function:

Referenced in 11 files:

Smatch caller information:

drivers/net/netkit.c netkit_link_init() -> bpf_link_prime()

Type Parameter Key Value
PARAM_VALUE 0 link 4096-ptr_max
PARAM_VALUE 0 link->attach_type 54-55
PARAM_VALUE 0 link->id 0
PARAM_VALUE 0 link->ops 1799189109274214400
PARAM_VALUE 0 link->prog 4096-ptr_max
PARAM_VALUE 0 link->refcnt.counter 1
PARAM_VALUE 0 link->type 13
PARAM_VALUE 1 primer 6986082521683623936
DATA_SOURCE 1 primer $1
LOCK2 global &rtnl_mutex

kernel/bpf/net_namespace.c netns_bpf_link_create() -> bpf_link_prime()

Type Parameter Key Value
PARAM_VALUE 0 link 4096-ptr_max
PARAM_VALUE 0 link->attach_type 17,36
PARAM_VALUE 0 link->id 0
PARAM_VALUE 0 link->ops 7119637189140779008
PARAM_VALUE 0 link->prog 4096-ptr_max
PARAM_VALUE 0 link->refcnt.counter 1
PARAM_VALUE 0 link->type 5
PARAM_VALUE 1 primer 1810166385076809728

kernel/bpf/bpf_iter.c bpf_iter_link_attach() -> bpf_link_prime()

Type Parameter Key Value
PARAM_VALUE 0 link 4096-ptr_max
PARAM_VALUE 0 link->attach_type 3-7,16-18,23-28,37-38,43,58-61
PARAM_VALUE 0 link->id 0
PARAM_VALUE 0 link->ops 3017113651303489536
PARAM_VALUE 0 link->prog 4096-ptr_max
PARAM_VALUE 0 link->refcnt.counter 1
PARAM_VALUE 0 link->type 4
PARAM_VALUE 1 primer 7428218843674783744

kernel/bpf/syscall.c bpf_perf_link_attach() -> bpf_link_prime()

Type Parameter Key Value
PARAM_VALUE 0 link 4096-ptr_max
PARAM_VALUE 0 link->attach_type 41
PARAM_VALUE 0 link->id 0
PARAM_VALUE 0 link->ops 7137865074645016576
PARAM_VALUE 0 link->prog 4096-ptr_max
PARAM_VALUE 0 link->refcnt.counter 1
PARAM_VALUE 0 link->type 7
PARAM_VALUE 1 primer 763488330505060352

kernel/bpf/syscall.c bpf_raw_tp_link_attach() -> bpf_link_prime()

Type Parameter Key Value
PARAM_VALUE 0 link 4096-ptr_max
PARAM_VALUE 0 link->id 0
PARAM_VALUE 0 link->ops 7778080592957321216
PARAM_VALUE 0 link->prog 4096-ptr_max
PARAM_VALUE 0 link->refcnt.counter 1
PARAM_VALUE 0 link->type 1
PARAM_VALUE 1 primer 6192198808818139136

kernel/bpf/syscall.c bpf_tracing_prog_attach() -> bpf_link_prime()

Type Parameter Key Value
PARAM_VALUE 0 link 4096-ptr_max
PARAM_VALUE 0 link->id 0
PARAM_VALUE 0 link->ops 240261215668076544
PARAM_VALUE 0 link->prog 4096-ptr_max
PARAM_VALUE 0 link->refcnt.counter 1
PARAM_VALUE 0 link->type 2
PARAM_VALUE 1 primer 4521880014659440640
LOCK2 &prog->aux->dst_mutex
TYPE_LOCK (struct bpf_prog_aux)->dst_mutex

net/netfilter/nf_bpf_link.c bpf_nf_link_attach() -> bpf_link_prime()

Type Parameter Key Value
PARAM_VALUE 0 link 4096-ptr_max
PARAM_VALUE 0 link->attach_type 45
PARAM_VALUE 0 link->id 0
PARAM_VALUE 0 link->ops 6685125013227692032
PARAM_VALUE 0 link->prog 4096-ptr_max
PARAM_VALUE 0 link->refcnt.counter 1
PARAM_VALUE 0 link->type 10
PARAM_VALUE 1 primer 2769152263732690944

kernel/bpf/cgroup.c cgroup_bpf_link_attach() -> bpf_link_prime()

Type Parameter Key Value
PARAM_VALUE 0 link 4096-ptr_max
PARAM_VALUE 0 link->attach_type 0-43,45-u32max
PARAM_VALUE 0 link->id 0
PARAM_VALUE 0 link->ops 3898327010616107008
PARAM_VALUE 0 link->prog 4096-ptr_max
PARAM_VALUE 0 link->refcnt.counter 1
PARAM_VALUE 0 link->type 3
PARAM_VALUE 1 primer 3134397960946552832

net/core/sock_map.c sock_map_link_create() -> bpf_link_prime()

Type Parameter Key Value
PARAM_VALUE 0 link 4096-ptr_max
PARAM_VALUE 0 link->attach_type 3-7,16-18,23-28,37-38,43,58-61
PARAM_VALUE 0 link->id 0
PARAM_VALUE 0 link->ops 8439884197135114240
PARAM_VALUE 0 link->prog 4096-ptr_max
PARAM_VALUE 0 link->refcnt.counter 1
PARAM_VALUE 0 link->type 14
PARAM_VALUE 1 primer 6970758076990332928

kernel/trace/bpf_trace.c bpf_kprobe_multi_link_attach() -> bpf_link_prime()

Type Parameter Key Value
PARAM_VALUE 0 link 4096-ptr_max
PARAM_VALUE 0 link->attach_type 42,56
PARAM_VALUE 0 link->id 0
PARAM_VALUE 0 link->ops 380385164691017728
PARAM_VALUE 0 link->prog 4096-ptr_max
PARAM_VALUE 0 link->refcnt.counter 1
PARAM_VALUE 0 link->type 8
PARAM_VALUE 1 primer 6289914688338071552

kernel/trace/bpf_trace.c bpf_tracing_multi_attach() -> bpf_link_prime()

Type Parameter Key Value
PARAM_VALUE 0 link 1-18446744073709551614
PARAM_VALUE 0 link->attach_type 59-61
PARAM_VALUE 0 link->id 0
PARAM_VALUE 0 link->ops 108560119638482944
PARAM_VALUE 0 link->prog 4096-ptr_max
PARAM_VALUE 0 link->refcnt.counter 1
PARAM_VALUE 0 link->type 15
PARAM_VALUE 1 primer 8103672930817880064

kernel/trace/bpf_trace.c bpf_uprobe_multi_link_attach() -> bpf_link_prime()

Type Parameter Key Value
PARAM_VALUE 0 link 4096-ptr_max
PARAM_VALUE 0 link->attach_type 48,57
PARAM_VALUE 0 link->flags 0-2
PARAM_VALUE 0 link->id 0
PARAM_VALUE 0 link->ops 6826151127873056768
PARAM_VALUE 0 link->prog 4096-ptr_max
PARAM_VALUE 0 link->refcnt.counter 1
PARAM_VALUE 0 link->type 12
PARAM_VALUE 1 primer 7704705950954319872

kernel/bpf/bpf_struct_ops.c bpf_struct_ops_link_create() -> bpf_link_prime()

Type Parameter Key Value
PARAM_VALUE 0 link 4096-ptr_max
PARAM_VALUE 0 link->attach_type 44
PARAM_VALUE 0 link->id 0
PARAM_VALUE 0 link->ops 8299489902341242880
PARAM_VALUE 0 link->prog 0
PARAM_VALUE 0 link->refcnt.counter 1
PARAM_VALUE 0 link->type 9
PARAM_VALUE 1 primer 5805952630692880384

net/core/dev.c bpf_xdp_link_attach() -> bpf_link_prime()

Type Parameter Key Value
PARAM_VALUE 0 link 4096-ptr_max
PARAM_VALUE 0 link->attach_type 3-7,16-18,23-28,37-38,43,58-61
PARAM_VALUE 0 link->id 0
PARAM_VALUE 0 link->ops 7343517155048247296
PARAM_VALUE 0 link->prog 4096-ptr_max
PARAM_VALUE 0 link->refcnt.counter 1
PARAM_VALUE 0 link->type 6
PARAM_VALUE 1 primer 8366253605740670976
LOCK2 global &rtnl_mutex

kernel/bpf/tcx.c tcx_link_init() -> bpf_link_prime()

Type Parameter Key Value
PARAM_VALUE 0 link 4096-ptr_max
PARAM_VALUE 0 link->attach_type 46-47
PARAM_VALUE 0 link->id 0
PARAM_VALUE 0 link->ops 9106235090037911552
PARAM_VALUE 0 link->prog 4096-ptr_max
PARAM_VALUE 0 link->refcnt.counter 1
PARAM_VALUE 0 link->type 11
PARAM_VALUE 1 primer 1345559911102611456
DATA_SOURCE 1 primer $1
LOCK2 global &rtnl_mutex