taglinefilesource code
sock194include/linux/net.hint  (*socketpair)  (struct socket *sock1, struct socket *sock2);
sock1916net/inet/af_inet.cstatic int inet_socketpair(struct socket *sock1, struct socket *sock2)
sock1756net/inet/ipx.cstatic int ipx_socketpair(struct socket *sock1, struct socket *sock2)
sock1635net/socket.cstruct socket *sock1, *sock2;
sock1645net/socket.csock1 = sockfd_lookup(fd1, NULL);
sock1646net/socket.cif (!sock1->ops->socketpair) 
sock1663net/socket.cif ((i = sock1->ops->socketpair(sock1, sock2)) < 0) 
sock1670net/socket.csock1->conn = sock2;
sock1671net/socket.csock2->conn = sock1;
sock1672net/socket.csock1->state = SS_CONNECTED;
sock168net/unix/sock.cstatic int unix_proto_socketpair(struct socket *sock1, struct socket *sock2);
sock1520net/unix/sock.cstatic int unix_proto_socketpair(struct socket *sock1, struct socket *sock2)
sock1522net/unix/sock.cstruct unix_proto_data *upd1 = UN_DATA(sock1), *upd2 = UN_DATA(sock2);