Searched refs:sock1 (Results 1 – 6 of 6) sorted by relevance
/Linux-v5.10/tools/testing/selftests/bpf/ |
D | test_sock_addr.c | 1138 static int cmp_sock_addr(info_fn fn, int sock1, in cmp_sock_addr() argument 1145 if (fn(sock1, (struct sockaddr *)&addr1, (socklen_t *)&len1) != 0) in cmp_sock_addr() 1151 static int cmp_local_ip(int sock1, const struct sockaddr_storage *addr2) in cmp_local_ip() argument 1153 return cmp_sock_addr(getsockname, sock1, addr2, /*cmp_port*/ 0); in cmp_local_ip() 1156 static int cmp_local_addr(int sock1, const struct sockaddr_storage *addr2) in cmp_local_addr() argument 1158 return cmp_sock_addr(getsockname, sock1, addr2, /*cmp_port*/ 1); in cmp_local_addr() 1161 static int cmp_peer_addr(int sock1, const struct sockaddr_storage *addr2) in cmp_peer_addr() argument 1163 return cmp_sock_addr(getpeername, sock1, addr2, /*cmp_port*/ 1); in cmp_peer_addr()
|
/Linux-v5.10/net/ |
D | socket.c | 1538 struct socket *sock1, *sock2; in __sys_socketpair() local 1578 err = sock_create(family, type, protocol, &sock1); in __sys_socketpair() 1584 sock_release(sock1); in __sys_socketpair() 1588 err = security_socket_socketpair(sock1, sock2); in __sys_socketpair() 1591 sock_release(sock1); in __sys_socketpair() 1595 err = sock1->ops->socketpair(sock1, sock2); in __sys_socketpair() 1598 sock_release(sock1); in __sys_socketpair() 1602 newfile1 = sock_alloc_file(sock1, flags, NULL); in __sys_socketpair()
|
/Linux-v5.10/include/linux/ |
D | net.h | 150 int (*socketpair)(struct socket *sock1,
|
/Linux-v5.10/net/tipc/ |
D | socket.c | 3297 static int tipc_socketpair(struct socket *sock1, struct socket *sock2) in tipc_socketpair() argument 3300 struct tipc_sock *tsk1 = tipc_sk(sock1->sk); in tipc_socketpair() 3301 u32 onode = tipc_own_addr(sock_net(sock1->sk)); in tipc_socketpair()
|
/Linux-v5.10/drivers/block/drbd/ |
D | drbd_receiver.c | 864 struct socket **sock1, in connection_established() argument 871 if (!*sock1 || !*sock2) in connection_established() 880 ok = drbd_socket_okay(sock1); in connection_established()
|
/Linux-v5.10/net/core/ |
D | sock.c | 2740 int sock_no_socketpair(struct socket *sock1, struct socket *sock2) in sock_no_socketpair() argument
|