Searched refs:sock1 (Results 1 – 7 of 7) sorted by relevance
/linux-6.12.1/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.12.1/net/ |
D | socket.c | 1739 struct socket *sock1, *sock2; in __sys_socketpair() local 1779 err = sock_create(family, type, protocol, &sock1); in __sys_socketpair() 1785 sock_release(sock1); in __sys_socketpair() 1789 err = security_socket_socketpair(sock1, sock2); in __sys_socketpair() 1792 sock_release(sock1); in __sys_socketpair() 1796 err = READ_ONCE(sock1->ops)->socketpair(sock1, sock2); in __sys_socketpair() 1799 sock_release(sock1); in __sys_socketpair() 1803 newfile1 = sock_alloc_file(sock1, flags, NULL); in __sys_socketpair()
|
/linux-6.12.1/include/linux/ |
D | net.h | 172 int (*socketpair)(struct socket *sock1,
|
/linux-6.12.1/tools/testing/selftests/bpf/prog_tests/ |
D | sock_addr.c | 2248 static int cmp_sock_addr(info_fn fn, int sock1, in cmp_sock_addr() argument 2256 if (fn(sock1, (struct sockaddr *)&addr1, (socklen_t *)&len1) != 0) in cmp_sock_addr()
|
/linux-6.12.1/net/tipc/ |
D | socket.c | 3330 static int tipc_socketpair(struct socket *sock1, struct socket *sock2) in tipc_socketpair() argument 3333 struct tipc_sock *tsk1 = tipc_sk(sock1->sk); in tipc_socketpair() 3334 u32 onode = tipc_own_addr(sock_net(sock1->sk)); in tipc_socketpair()
|
/linux-6.12.1/drivers/block/drbd/ |
D | drbd_receiver.c | 865 struct socket **sock1, in connection_established() argument 872 if (!*sock1 || !*sock2) in connection_established() 881 ok = drbd_socket_okay(sock1); in connection_established()
|
/linux-6.12.1/net/core/ |
D | sock.c | 3333 int sock_no_socketpair(struct socket *sock1, struct socket *sock2) in sock_no_socketpair() argument
|