Searched refs:sock1 (Results 1 – 7 of 7) sorted by relevance
/openbmc/linux/tools/testing/selftests/net/ |
H A 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()
|
/openbmc/linux/tools/testing/selftests/bpf/ |
H A 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()
|
/openbmc/linux/net/ |
H A D | socket.c | 1738 struct socket *sock1, *sock2; in __sys_socketpair() local 1778 err = sock_create(family, type, protocol, &sock1); in __sys_socketpair() 1784 sock_release(sock1); in __sys_socketpair() 1788 err = security_socket_socketpair(sock1, sock2); in __sys_socketpair() 1791 sock_release(sock1); in __sys_socketpair() 1795 err = READ_ONCE(sock1->ops)->socketpair(sock1, sock2); in __sys_socketpair() 1798 sock_release(sock1); in __sys_socketpair() 1802 newfile1 = sock_alloc_file(sock1, flags, NULL); in __sys_socketpair()
|
/openbmc/linux/include/linux/ |
H A D | net.h | 171 int (*socketpair)(struct socket *sock1,
|
/openbmc/linux/net/tipc/ |
H A D | socket.c | 3336 static int tipc_socketpair(struct socket *sock1, struct socket *sock2) in tipc_socketpair() argument 3339 struct tipc_sock *tsk1 = tipc_sk(sock1->sk); in tipc_socketpair() 3340 u32 onode = tipc_own_addr(sock_net(sock1->sk)); in tipc_socketpair()
|
/openbmc/linux/drivers/block/drbd/ |
H A 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()
|
/openbmc/linux/net/core/ |
H A D | sock.c | 3214 int sock_no_socketpair(struct socket *sock1, struct socket *sock2) in sock_no_socketpair() argument
|