Home
last modified time | relevance | path

Searched refs:sock2 (Results 1 – 6 of 6) sorted by relevance

/linux-6.1.9/tools/testing/selftests/net/
Dso_netns_cookie.c28 int sock1, sock2; in main() local
44 sock2 = socket(AF_INET, SOCK_STREAM, 0); in main()
45 if (sock2 < 0) in main()
49 if (getsockopt(sock2, SOL_SOCKET, SO_NETNS_COOKIE, &cookie2, &vallen) != 0) in main()
59 close(sock2); in main()
/linux-6.1.9/net/
Dsocket.c1658 struct socket *sock1, *sock2; in __sys_socketpair() local
1702 err = sock_create(family, type, protocol, &sock2); in __sys_socketpair()
1708 err = security_socket_socketpair(sock1, sock2); in __sys_socketpair()
1710 sock_release(sock2); in __sys_socketpair()
1715 err = sock1->ops->socketpair(sock1, sock2); in __sys_socketpair()
1717 sock_release(sock2); in __sys_socketpair()
1725 sock_release(sock2); in __sys_socketpair()
1729 newfile2 = sock_alloc_file(sock2, flags, NULL); in __sys_socketpair()
/linux-6.1.9/include/linux/
Dnet.h170 struct socket *sock2);
/linux-6.1.9/drivers/block/drbd/
Ddrbd_receiver.c867 struct socket **sock2) in connection_established() argument
873 if (!*sock1 || !*sock2) in connection_established()
883 ok = drbd_socket_okay(sock2) && ok; in connection_established()
/linux-6.1.9/net/tipc/
Dsocket.c3331 static int tipc_socketpair(struct socket *sock1, struct socket *sock2) in tipc_socketpair() argument
3333 struct tipc_sock *tsk2 = tipc_sk(sock2->sk); in tipc_socketpair()
/linux-6.1.9/net/core/
Dsock.c3132 int sock_no_socketpair(struct socket *sock1, struct socket *sock2) in sock_no_socketpair() argument