taglinefilesource code
newsock88include/linux/net.hint  (*dup)    (struct socket *newsock, struct socket *oldsock);
newsock95include/linux/net.hint  (*accept)  (struct socket *sock, struct socket *newsock,
newsock879net/inet/sock.cinet_dup(struct socket *newsock, struct socket *oldsock)
newsock881net/inet/sock.creturn(inet_create(newsock,
newsock1108net/inet/sock.cinet_accept(struct socket *sock, struct socket *newsock, int flags)
newsock1124net/inet/sock.cif (newsock->data) kfree_s(newsock->data, sizeof(struct sock));
newsock1125net/inet/sock.cnewsock->data = NULL;
newsock1143net/inet/sock.cnewsock->data = (void *)sk2;
newsock1144net/inet/sock.csk2->sleep = newsock->wait;
newsock1145net/inet/sock.cnewsock->conn = NULL;
newsock1155net/inet/sock.cnewsock->data = NULL;
newsock1166net/inet/sock.cnewsock->data = NULL;
newsock1169net/inet/sock.cnewsock->state = SS_CONNECTED;
newsock588net/socket.cstruct socket *sock, *newsock;
newsock606net/socket.cif (!(newsock = sock_alloc(0))) {
newsock610net/socket.cnewsock->type = sock->type;
newsock611net/socket.cnewsock->ops = sock->ops;
newsock612net/socket.cif ((i = sock->ops->dup(newsock, sock)) < 0) {
newsock613net/socket.csock_release(newsock);
newsock617net/socket.ci = newsock->ops->accept(sock, newsock, file->f_flags);
newsock619net/socket.csock_release(newsock);
newsock623net/socket.cif ((fd = get_fd(SOCK_INODE(newsock))) < 0) {
newsock624net/socket.csock_release(newsock);
newsock629net/socket.csock, newsock));
newsock632net/socket.cnewsock->ops->getname(newsock, upeer_sockaddr, upeer_addrlen, 1);
newsock58net/unix/sock.cstatic int unix_proto_dup(struct socket *newsock, struct socket *oldsock);
newsock65net/unix/sock.cstatic int unix_proto_accept(struct socket *sock, struct socket *newsock, 
newsock313net/unix/sock.cunix_proto_dup(struct socket *newsock, struct socket *oldsock)
newsock317net/unix/sock.creturn(unix_proto_create(newsock, upd->protocol));
newsock499net/unix/sock.cunix_proto_accept(struct socket *sock, struct socket *newsock, int flags)
newsock504net/unix/sock.csock, newsock);
newsock525net/unix/sock.cnewsock->conn = clientsock;
newsock526net/unix/sock.cclientsock->conn = newsock;
newsock528net/unix/sock.cnewsock->state = SS_CONNECTED;
newsock530net/unix/sock.cUN_DATA(newsock)->peerupd         = UN_DATA(clientsock);
newsock531net/unix/sock.cUN_DATA(newsock)->sockaddr_un        = UN_DATA(sock)->sockaddr_un;
newsock532net/unix/sock.cUN_DATA(newsock)->sockaddr_len       = UN_DATA(sock)->sockaddr_len;