Home
last modified time | relevance | path

Searched refs:sock1 (Results 1 – 7 of 7) sorted by relevance

/kernel/liteos_a/testsuites/unittest/container/smoke/
DIt_net_container_008.cpp39 static int UdpTcpBind(int *sock1, int *sock2) in UdpTcpBind() argument
70 (*sock1) = udp_sock; in UdpTcpBind()
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/
Dtest_sock_addr.c1138 static int cmp_sock_addr(info_fn fn, int sock1, in cmp_sock_addr() argument
1145 if (fn(sock1, (struct sockaddr *)&addr1, (socklen_t *)&len1) != 0) in cmp_sock_addr()
1151 static int cmp_local_ip(int sock1, const struct sockaddr_storage *addr2) in cmp_local_ip() argument
1153 return cmp_sock_addr(getsockname, sock1, addr2, /*cmp_port*/ 0); in cmp_local_ip()
1156 static int cmp_local_addr(int sock1, const struct sockaddr_storage *addr2) in cmp_local_addr() argument
1158 return cmp_sock_addr(getsockname, sock1, addr2, /*cmp_port*/ 1); in cmp_local_addr()
1161 static int cmp_peer_addr(int sock1, const struct sockaddr_storage *addr2) in cmp_peer_addr() argument
1163 return cmp_sock_addr(getpeername, sock1, addr2, /*cmp_port*/ 1); in cmp_peer_addr()
/kernel/linux/linux-5.10/net/
Dsocket.c1527 struct socket *sock1, *sock2; in __sys_socketpair() local
1567 err = sock_create(family, type, protocol, &sock1); in __sys_socketpair()
1573 sock_release(sock1); in __sys_socketpair()
1577 err = security_socket_socketpair(sock1, sock2); in __sys_socketpair()
1580 sock_release(sock1); in __sys_socketpair()
1584 err = sock1->ops->socketpair(sock1, sock2); in __sys_socketpair()
1587 sock_release(sock1); in __sys_socketpair()
1591 newfile1 = sock_alloc_file(sock1, flags, NULL); in __sys_socketpair()
/kernel/linux/linux-5.10/include/linux/
Dnet.h147 int (*socketpair)(struct socket *sock1,
/kernel/linux/linux-5.10/net/tipc/
Dsocket.c3326 static int tipc_socketpair(struct socket *sock1, struct socket *sock2) in tipc_socketpair() argument
3329 struct tipc_sock *tsk1 = tipc_sk(sock1->sk); in tipc_socketpair()
3330 u32 onode = tipc_own_addr(sock_net(sock1->sk)); in tipc_socketpair()
/kernel/linux/linux-5.10/drivers/block/drbd/
Ddrbd_receiver.c864 struct socket **sock1, in connection_established() argument
871 if (!*sock1 || !*sock2) in connection_established()
880 ok = drbd_socket_okay(sock1); in connection_established()
/kernel/linux/linux-5.10/net/core/
Dsock.c2758 int sock_no_socketpair(struct socket *sock1, struct socket *sock2) in sock_no_socketpair() argument