Searched refs:unix_sk (Results 1 – 11 of 11) sorted by relevance
/openbmc/linux/tools/testing/selftests/bpf/progs/ |
H A D | bpf_iter_setsockopt_unix.c | 16 static inline int cmpname(struct unix_sock *unix_sk) in cmpname() argument 21 if (unix_sk->addr->name->sun_path[i] != sun_path[i]) in cmpname() 31 struct unix_sock *unix_sk = ctx->unix_sk; in change_sndbuf() local 34 if (!unix_sk || !unix_sk->addr) in change_sndbuf() 37 if (unix_sk->addr->name->sun_path[0]) in change_sndbuf() 40 if (cmpname(unix_sk)) in change_sndbuf() 44 err = bpf_setsockopt(unix_sk, SOL_SOCKET, SO_SNDBUF, in change_sndbuf() 50 err = bpf_getsockopt(unix_sk, SOL_SOCKET, SO_SNDBUF, in change_sndbuf()
|
H A D | bpf_iter_unix.c | 27 struct unix_sock *unix_sk = ctx->unix_sk; in dump_unix() local 28 struct sock *sk = (struct sock *)unix_sk; in dump_unix() 32 if (!unix_sk) in dump_unix() 41 unix_sk, in dump_unix() 51 if (unix_sk->addr) { in dump_unix() 52 if (unix_sk->addr->name->sun_path[0]) { in dump_unix() 53 BPF_SEQ_PRINTF(seq, " %s", unix_sk->addr->name->sun_path); in dump_unix() 61 len = unix_sk->addr->len - sizeof(short); in dump_unix() 71 unix_sk->addr->name->sun_path[i] ?: in dump_unix()
|
H A D | test_skc_to_unix_sock.c | 16 struct unix_sock *unix_sk; in BPF_PROG() local 22 unix_sk = (struct unix_sock *)bpf_skc_to_unix_sock(sock->sk); in BPF_PROG() 23 if (!unix_sk) in BPF_PROG() 26 if (unix_sk->addr->name->sun_path[0]) in BPF_PROG() 29 len = unix_sk->addr->len - sizeof(short); in BPF_PROG() 35 path[i] = unix_sk->addr->name->sun_path[i]; in BPF_PROG()
|
H A D | bpf_iter.h | 116 struct unix_sock *unix_sk; member
|
/openbmc/linux/include/net/ |
H A D | af_unix.h | 71 #define unix_sk(ptr) container_of_const(ptr, struct unix_sock, sk) macro 72 #define unix_peer(sk) (unix_sk(sk)->peer) 74 #define unix_state_lock(s) spin_lock(&unix_sk(s)->lock) 75 #define unix_state_unlock(s) spin_unlock(&unix_sk(s)->lock) 88 spin_lock_nested(&unix_sk(sk)->lock, subclass); in unix_state_lock_nested()
|
/openbmc/linux/net/unix/ |
H A D | af_unix.c | 324 smp_store_release(&unix_sk(sk)->addr, addr); in __unix_set_addr_hash() 369 struct unix_sock *u = unix_sk(s); in __unix_find_socket_byname() 399 struct dentry *dentry = unix_sk(s)->path.dentry; in unix_find_socket_byinode() 444 __remove_wait_queue(&unix_sk(u->peer_wake.private)->peer_wait, in unix_dgram_peer_wake_relay() 461 u = unix_sk(sk); in unix_dgram_peer_wake_connect() 462 u_other = unix_sk(other); in unix_dgram_peer_wake_connect() 482 u = unix_sk(sk); in unix_dgram_peer_wake_disconnect() 483 u_other = unix_sk(other); in unix_dgram_peer_wake_disconnect() 557 wake_up_interruptible_all(&unix_sk(sk)->peer_wait); in unix_dgram_disconnected() 572 struct unix_sock *u = unix_sk(sk); in unix_sock_destructor() [all …]
|
H A D | scm.c | 54 struct unix_sock *u = unix_sk(s); in unix_inflight() 77 struct unix_sock *u = unix_sk(s); in unix_notinflight()
|
H A D | unix_bpf.c | 19 struct unix_sock *u = unix_sk(sk); in unix_msg_wait_data() 53 struct unix_sock *u = unix_sk(sk); in unix_bpf_recvmsg()
|
H A D | diag.c | 17 struct unix_address *addr = smp_load_acquire(&unix_sk(sk)->addr); in sk_diag_dump_name() 29 struct dentry *dentry = unix_sk(sk)->path.dentry; in sk_diag_dump_vfs() 88 peer = unix_sk(req)->peer; in sk_diag_dump_icons()
|
H A D | garbage.c | 111 struct unix_sock *u = unix_sk(sk); in scan_inflight() 149 u = unix_sk(skb->sk); in scan_children()
|
/openbmc/linux/security/ |
H A D | lsm_audit.c | 344 u = unix_sk(sk); in dump_common_audit_data()
|