Searched refs:sk (Results 1 – 5 of 5) sorted by relevance
/kernel/bpf/ |
D | reuseport_array.c | 21 void bpf_sk_reuseport_detach(struct sock *sk) in bpf_sk_reuseport_detach() argument 25 write_lock_bh(&sk->sk_callback_lock); in bpf_sk_reuseport_detach() 26 socks = sk->sk_user_data; in bpf_sk_reuseport_detach() 28 WRITE_ONCE(sk->sk_user_data, NULL); in bpf_sk_reuseport_detach() 37 write_unlock_bh(&sk->sk_callback_lock); in bpf_sk_reuseport_detach() 65 struct sock *sk; in reuseport_array_delete_elem() local 76 sk = rcu_dereference_protected(array->ptrs[index], in reuseport_array_delete_elem() 78 if (sk) { in reuseport_array_delete_elem() 79 write_lock_bh(&sk->sk_callback_lock); in reuseport_array_delete_elem() 80 WRITE_ONCE(sk->sk_user_data, NULL); in reuseport_array_delete_elem() [all …]
|
D | cgroup.c | 623 int __cgroup_bpf_run_filter_skb(struct sock *sk, in __cgroup_bpf_run_filter_skb() argument 633 if (!sk || !sk_fullsock(sk)) in __cgroup_bpf_run_filter_skb() 636 if (sk->sk_family != AF_INET && sk->sk_family != AF_INET6) in __cgroup_bpf_run_filter_skb() 639 cgrp = sock_cgroup_ptr(&sk->sk_cgrp_data); in __cgroup_bpf_run_filter_skb() 640 save_sk = skb->sk; in __cgroup_bpf_run_filter_skb() 641 skb->sk = sk; in __cgroup_bpf_run_filter_skb() 657 skb->sk = save_sk; in __cgroup_bpf_run_filter_skb() 676 int __cgroup_bpf_run_filter_sk(struct sock *sk, in __cgroup_bpf_run_filter_sk() argument 679 struct cgroup *cgrp = sock_cgroup_ptr(&sk->sk_cgrp_data); in __cgroup_bpf_run_filter_sk() 682 ret = BPF_PROG_RUN_ARRAY(cgrp->bpf.effective[type], sk, BPF_PROG_RUN); in __cgroup_bpf_run_filter_sk() [all …]
|
D | xskmap.c | 234 if (sock->sk->sk_family != PF_XDP) { in xsk_map_update_elem() 239 xs = (struct xdp_sock *)sock->sk; in xsk_map_update_elem()
|
/kernel/ |
D | audit.c | 91 struct sock *sk; member 293 return aunet->sk; in audit_get_sk() 656 struct sock *sk; in auditd_send_unicast_skb() local 675 sk = audit_get_sk(net); in auditd_send_unicast_skb() 679 rc = netlink_unicast(sk, skb, portid, 0); in auditd_send_unicast_skb() 707 static int kauditd_send_queue(struct sock *sk, u32 portid, in kauditd_send_queue() argument 726 if (!sk) { in kauditd_send_queue() 734 rc = netlink_unicast(sk, skb, portid, 0); in kauditd_send_queue() 740 sk = NULL; in kauditd_send_queue() 810 struct sock *sk = NULL; in kauditd_thread() local [all …]
|
D | auditfilter.c | 1158 struct net *net = sock_net(NETLINK_CB(request_skb).sk); in audit_list_rules_send()
|