taglinefilesource code
newsock88include/linux/net.hint  (*dup)    (struct socket *newsock, struct socket *oldsock);
newsock95include/linux/net.hint  (*accept)  (struct socket *sock, struct socket *newsock,
newsock947net/inet/sock.cinet_dup(struct socket *newsock, struct socket *oldsock)
newsock949net/inet/sock.creturn(inet_create(newsock,
newsock1176net/inet/sock.cinet_accept(struct socket *sock, struct socket *newsock, int flags)
newsock1192net/inet/sock.cif (newsock->data) kfree_s(newsock->data, sizeof(struct sock));
newsock1193net/inet/sock.cnewsock->data = NULL;
newsock1211net/inet/sock.cnewsock->data = (void *)sk2;
newsock1212net/inet/sock.csk2->sleep = newsock->wait;
newsock1213net/inet/sock.cnewsock->conn = NULL;
newsock1223net/inet/sock.cnewsock->data = NULL;
newsock1234net/inet/sock.cnewsock->data = NULL;
newsock1237net/inet/sock.cnewsock->state = SS_CONNECTED;
newsock587net/socket.cstruct socket *sock, *newsock;
newsock605net/socket.cif (!(newsock = sock_alloc(0))) {
newsock609net/socket.cnewsock->type = sock->type;
newsock610net/socket.cnewsock->ops = sock->ops;
newsock611net/socket.cif ((i = sock->ops->dup(newsock, sock)) < 0) {
newsock612net/socket.csock_release(newsock);
newsock616net/socket.ci = newsock->ops->accept(sock, newsock, file->f_flags);
newsock618net/socket.csock_release(newsock);
newsock622net/socket.cif ((fd = get_fd(SOCK_INODE(newsock))) < 0) {
newsock623net/socket.csock_release(newsock);
newsock628net/socket.csock, newsock));
newsock631net/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;