taglinefilesource code
newsock88include/linux/net.hint  (*dup)    (struct socket *newsock, struct socket *oldsock);
newsock95include/linux/net.hint  (*accept)  (struct socket *sock, struct socket *newsock,
newsock939net/inet/sock.cinet_dup(struct socket *newsock, struct socket *oldsock)
newsock941net/inet/sock.creturn(inet_create(newsock,
newsock1168net/inet/sock.cinet_accept(struct socket *sock, struct socket *newsock, int flags)
newsock1184net/inet/sock.cif (newsock->data) kfree_s(newsock->data, sizeof(struct sock));
newsock1185net/inet/sock.cnewsock->data = NULL;
newsock1203net/inet/sock.cnewsock->data = (void *)sk2;
newsock1204net/inet/sock.csk2->sleep = newsock->wait;
newsock1205net/inet/sock.cnewsock->conn = NULL;
newsock1215net/inet/sock.cnewsock->data = NULL;
newsock1226net/inet/sock.cnewsock->data = NULL;
newsock1229net/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);
newsock59net/unix/sock.cstatic int unix_proto_dup(struct socket *newsock, struct socket *oldsock);
newsock66net/unix/sock.cstatic int unix_proto_accept(struct socket *sock, struct socket *newsock, 
newsock337net/unix/sock.cunix_proto_dup(struct socket *newsock, struct socket *oldsock)
newsock341net/unix/sock.creturn(unix_proto_create(newsock, upd->protocol));
newsock523net/unix/sock.cunix_proto_accept(struct socket *sock, struct socket *newsock, int flags)
newsock528net/unix/sock.csock, newsock);
newsock549net/unix/sock.cnewsock->conn = clientsock;
newsock550net/unix/sock.cclientsock->conn = newsock;
newsock552net/unix/sock.cnewsock->state = SS_CONNECTED;
newsock554net/unix/sock.cUN_DATA(newsock)->peerupd         = UN_DATA(clientsock);
newsock555net/unix/sock.cUN_DATA(newsock)->sockaddr_un        = UN_DATA(sock)->sockaddr_un;
newsock556net/unix/sock.cUN_DATA(newsock)->sockaddr_len       = UN_DATA(sock)->sockaddr_len;