/Linux-v6.6/arch/um/drivers/ |
D | daemon_user.c | 30 struct sockaddr_un sock; 33 static struct sockaddr_un *new_addr(void *name, int len) in new_addr() 35 struct sockaddr_un *sun; in new_addr() 37 sun = uml_kmalloc(sizeof(struct sockaddr_un), UM_GFP_KERNEL); in new_addr() 50 struct sockaddr_un *ctl_addr = pri->ctl_addr; in connect_to_switch() 51 struct sockaddr_un *local_addr = pri->local_addr; in connect_to_switch() 52 struct sockaddr_un *sun; in connect_to_switch() 86 sun = uml_kmalloc(sizeof(struct sockaddr_un), UM_GFP_KERNEL); in connect_to_switch() 180 struct sockaddr_un *data_addr = pri->data_addr; in daemon_user_write()
|
D | vector_user.c | 313 struct sockaddr_un *local_addr = NULL, *remote_addr = NULL; in user_init_unix_fds() 322 remote_addr = uml_kmalloc(sizeof(struct sockaddr_un), UM_GFP_KERNEL); in user_init_unix_fds() 332 local_addr = uml_kmalloc(sizeof(struct sockaddr_un), UM_GFP_KERNEL); in user_init_unix_fds() 359 if (bind(fd, (struct sockaddr *) local_addr, sizeof(struct sockaddr_un))) { in user_init_unix_fds() 366 if (connect(fd, (const struct sockaddr *) remote_addr, sizeof(struct sockaddr_un)) < 0) { in user_init_unix_fds() 374 result->remote_addr_size = sizeof(struct sockaddr_un); in user_init_unix_fds()
|
D | mconsole_user.c | 181 struct sockaddr_un target; in mconsole_notify()
|
/Linux-v6.6/tools/testing/selftests/bpf/prog_tests/ |
D | bpf_iter_setsockopt_unix.c | 12 struct sockaddr_un addr = { in create_unix_socket() 23 len = offsetof(struct sockaddr_un, sun_path); in create_unix_socket() 34 len - offsetof(struct sockaddr_un, sun_path)); in create_unix_socket()
|
D | skc_to_unix_sock.c | 13 struct sockaddr_un sockaddr; in test_skc_to_unix_sock()
|
/Linux-v6.6/tools/perf/trace/beauty/ |
D | sockaddr.c | 38 struct sockaddr_un *sun = (struct sockaddr_un *)sa; in af_local__scnprintf()
|
/Linux-v6.6/tools/testing/selftests/net/af_unix/ |
D | unix_connect.c | 119 struct sockaddr_un addr = { in TEST_F() 127 addrlen = offsetof(struct sockaddr_un, sun_path) + variant->len; in TEST_F()
|
D | test_unix_oob.c | 116 void producer(struct sockaddr_un *consumer_addr) in producer() 178 struct sockaddr_un consumer_addr, paddr; in main()
|
D | scm_pidfd.c | 213 struct sockaddr_un listen_addr; 281 addr->addrlen = offsetof(struct sockaddr_un, sun_path); in fill_sockaddr()
|
/Linux-v6.6/net/unix/ |
D | af_unix.c | 147 static unsigned int unix_abstract_hash(struct sockaddr_un *sunaddr, in unix_abstract_hash() 251 static struct unix_address *unix_create_addr(struct sockaddr_un *sunaddr, in unix_create_addr() 280 static int unix_validate_addr(struct sockaddr_un *sunaddr, int addr_len) in unix_validate_addr() 282 if (addr_len <= offsetof(struct sockaddr_un, sun_path) || in unix_validate_addr() 292 static int unix_mkname_bsd(struct sockaddr_un *sunaddr, int addr_len) in unix_mkname_bsd() 297 BUILD_BUG_ON(offset != offsetof(struct sockaddr_un, sun_path)); in unix_mkname_bsd() 371 struct sockaddr_un *sunname, in __unix_find_socket_byname() 387 struct sockaddr_un *sunname, in unix_find_socket_byname() 1071 static struct sock *unix_find_bsd(struct sockaddr_un *sunaddr, int addr_len, in unix_find_bsd() 1116 struct sockaddr_un *sunaddr, in unix_find_abstract() [all …]
|
D | diag.c | 23 addr->len - offsetof(struct sockaddr_un, sun_path), in sk_diag_dump_name()
|
/Linux-v6.6/include/uapi/linux/ |
D | un.h | 9 struct sockaddr_un { struct
|
/Linux-v6.6/tools/testing/selftests/bpf/progs/ |
D | test_skc_to_unix_sock.c | 32 if (i >= sizeof(struct sockaddr_un)) in BPF_PROG()
|
D | bpf_iter_unix.c | 67 if (i >= sizeof(struct sockaddr_un)) in dump_unix()
|
/Linux-v6.6/include/net/ |
D | af_unix.h | 29 struct sockaddr_un name[];
|
/Linux-v6.6/net/sunrpc/ |
D | rpcb_clnt.c | 221 # define SUN_LEN(ptr) (offsetof(struct sockaddr_un, sun_path) \ 229 const struct sockaddr_un *addr) in rpcb_create_af_local() 276 static const struct sockaddr_un rpcb_localaddr_abstract = { in rpcb_create_local_abstract() 286 static const struct sockaddr_un rpcb_localaddr_unix = { in rpcb_create_local_unix()
|
D | xprtsock.c | 239 static inline struct sockaddr_un *xs_addr_un(struct rpc_xprt *xprt) in xs_addr_un() 241 return (struct sockaddr_un *) &xprt->addr; in xs_addr_un() 259 struct sockaddr_un *sun; in xs_format_common_peer_addresses() 3193 struct sockaddr_un *sun = (struct sockaddr_un *)args->dstaddr; in xs_setup_local()
|
D | clnt.c | 562 struct sockaddr_un *sun = in rpc_create() 563 (struct sockaddr_un *)args->address; in rpc_create()
|
/Linux-v6.6/arch/um/os-Linux/ |
D | file.c | 217 struct sockaddr_un sock; in os_connect_socket() 547 struct sockaddr_un addr; in os_create_unix_socket()
|
/Linux-v6.6/net/sunrpc/auth_gss/ |
D | gss_rpc_upcall.c | 81 static const struct sockaddr_un gssp_localaddr = { in gssp_rpc_create()
|
/Linux-v6.6/net/9p/ |
D | trans_fd.c | 1040 struct sockaddr_un sun_server; in p9_fd_create_unix() 1064 sizeof(struct sockaddr_un) - 1, 0); in p9_fd_create_unix()
|
/Linux-v6.6/tools/perf/ |
D | builtin-daemon.c | 583 struct sockaddr_un addr; in setup_server_socket() 861 struct sockaddr_un addr; in setup_client_socket()
|
/Linux-v6.6/security/tomoyo/ |
D | network.c | 603 u->addr = ((struct sockaddr_un *) addr)->sun_path; in tomoyo_check_unix_address()
|