Searched refs:sock1 (Results 1 – 7 of 7) sorted by relevance
/linux-6.1.9/tools/testing/selftests/net/ ! |
D | so_netns_cookie.c | 28 int sock1, sock2; in main() local 30 sock1 = socket(AF_INET, SOCK_STREAM, 0); in main() 31 if (sock1 < 0) in main() 35 if (getsockopt(sock1, SOL_SOCKET, SO_NETNS_COOKIE, &cookie1, &vallen) != 0) in main() 58 close(sock1); in main()
|
/linux-6.1.9/tools/testing/selftests/bpf/ ! |
D | test_sock_addr.c | 913 static int cmp_sock_addr(info_fn fn, int sock1, in cmp_sock_addr() argument 920 if (fn(sock1, (struct sockaddr *)&addr1, (socklen_t *)&len1) != 0) in cmp_sock_addr() 926 static int cmp_local_ip(int sock1, const struct sockaddr_storage *addr2) in cmp_local_ip() argument 928 return cmp_sock_addr(getsockname, sock1, addr2, /*cmp_port*/ 0); in cmp_local_ip() 931 static int cmp_local_addr(int sock1, const struct sockaddr_storage *addr2) in cmp_local_addr() argument 933 return cmp_sock_addr(getsockname, sock1, addr2, /*cmp_port*/ 1); in cmp_local_addr() 936 static int cmp_peer_addr(int sock1, const struct sockaddr_storage *addr2) in cmp_peer_addr() argument 938 return cmp_sock_addr(getpeername, sock1, addr2, /*cmp_port*/ 1); in cmp_peer_addr()
|
/linux-6.1.9/net/ ! |
D | socket.c | 1658 struct socket *sock1, *sock2; in __sys_socketpair() local 1698 err = sock_create(family, type, protocol, &sock1); in __sys_socketpair() 1704 sock_release(sock1); in __sys_socketpair() 1708 err = security_socket_socketpair(sock1, sock2); in __sys_socketpair() 1711 sock_release(sock1); in __sys_socketpair() 1715 err = sock1->ops->socketpair(sock1, sock2); in __sys_socketpair() 1718 sock_release(sock1); in __sys_socketpair() 1722 newfile1 = sock_alloc_file(sock1, flags, NULL); in __sys_socketpair()
|
/linux-6.1.9/include/linux/ ! |
D | net.h | 169 int (*socketpair)(struct socket *sock1,
|
/linux-6.1.9/net/tipc/ ! |
D | socket.c | 3331 static int tipc_socketpair(struct socket *sock1, struct socket *sock2) in tipc_socketpair() argument 3334 struct tipc_sock *tsk1 = tipc_sk(sock1->sk); in tipc_socketpair() 3335 u32 onode = tipc_own_addr(sock_net(sock1->sk)); in tipc_socketpair()
|
/linux-6.1.9/drivers/block/drbd/ ! |
D | drbd_receiver.c | 866 struct socket **sock1, in connection_established() argument 873 if (!*sock1 || !*sock2) in connection_established() 882 ok = drbd_socket_okay(sock1); in connection_established()
|
/linux-6.1.9/net/core/ ! |
D | sock.c | 3132 int sock_no_socketpair(struct socket *sock1, struct socket *sock2) in sock_no_socketpair() argument
|