Searched full:sock2 (Results 1 – 5 of 5) sorted by relevance
| /linux/tools/testing/selftests/net/ |
| H A D | so_netns_cookie.c | 28 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/net/mctp/test/ |
| H A D | sock-test.c | 335 struct socket *sock1 = NULL, *sock2 = NULL, *sock3 = NULL; in mctp_test_bind_conflicts_inner() local 343 mctp_test_bind_run(test, bind1, &bind_errno, &sock2); in mctp_test_bind_conflicts_inner() 351 if (sock2) in mctp_test_bind_conflicts_inner() 352 sock_release(sock2); in mctp_test_bind_conflicts_inner()
|
| /linux/net/ |
| H A D | socket.c | 1829 struct socket *sock1, *sock2; in __sys_socketpair() local 1873 err = sock_create(family, type, protocol, &sock2); in __sys_socketpair() 1879 err = security_socket_socketpair(sock1, sock2); in __sys_socketpair() 1881 sock_release(sock2); in __sys_socketpair() 1886 err = READ_ONCE(sock1->ops)->socketpair(sock1, sock2); in __sys_socketpair() 1888 sock_release(sock2); in __sys_socketpair() 1896 sock_release(sock2); in __sys_socketpair() 1900 newfile2 = sock_alloc_file(sock2, flags, NULL); in __sys_socketpair()
|
| /linux/drivers/block/drbd/ |
| H A D | drbd_receiver.c | 678 struct socket **sock2) in connection_established() argument 684 if (!*sock1 || !*sock2) in connection_established() 694 ok = drbd_socket_okay(sock2) && ok; in connection_established()
|
| /linux/net/tipc/ |
| H A D | socket.c | 3330 static int tipc_socketpair(struct socket *sock1, struct socket *sock2) in tipc_socketpair() argument 3332 struct tipc_sock *tsk2 = tipc_sk(sock2->sk); in tipc_socketpair()
|