taglinefilesource code
newsock88include/linux/net.hint  (*dup)    (struct socket *newsock, struct socket *oldsock);
newsock95include/linux/net.hint  (*accept)  (struct socket *sock, struct socket *newsock,
newsock672net/inet/af_inet.cstatic int inet_dup(struct socket *newsock, struct socket *oldsock)
newsock674net/inet/af_inet.creturn(inet_create(newsock,((struct sock *)(oldsock->data))->protocol));
newsock917net/inet/af_inet.cstatic int inet_accept(struct socket *sock, struct socket *newsock, int flags)
newsock929net/inet/af_inet.cif (newsock->data)
newsock931net/inet/af_inet.cstruct sock *sk=(struct sock *)newsock->data;
newsock932net/inet/af_inet.cnewsock->data=NULL;
newsock958net/inet/af_inet.cnewsock->data = (void *)sk2;
newsock959net/inet/af_inet.csk2->sleep = newsock->wait;
newsock960net/inet/af_inet.cnewsock->conn = NULL;
newsock973net/inet/af_inet.cnewsock->data = NULL;
newsock985net/inet/af_inet.cnewsock->data = NULL;
newsock988net/inet/af_inet.cnewsock->state = SS_CONNECTED;
newsock624net/inet/ipx.cstatic int ipx_dup(struct socket *newsock,struct socket *oldsock)
newsock626net/inet/ipx.creturn(ipx_create(newsock,SOCK_DGRAM));
newsock761net/inet/ipx.cstatic int ipx_accept(struct socket *sock, struct socket *newsock, int flags)
newsock763net/inet/ipx.cif(newsock->data)
newsock764net/inet/ipx.ckfree_s(newsock->data,sizeof(ipx_socket));
newsock754net/socket.cstruct socket *sock, *newsock;
newsock772net/socket.cif (!(newsock = sock_alloc(0))) 
newsock777net/socket.cnewsock->type = sock->type;
newsock778net/socket.cnewsock->ops = sock->ops;
newsock779net/socket.cif ((i = sock->ops->dup(newsock, sock)) < 0) 
newsock781net/socket.csock_release(newsock);
newsock785net/socket.ci = newsock->ops->accept(sock, newsock, file->f_flags);
newsock788net/socket.csock_release(newsock);
newsock792net/socket.cif ((fd = get_fd(SOCK_INODE(newsock))) < 0) 
newsock794net/socket.csock_release(newsock);
newsock800net/socket.cnewsock->ops->getname(newsock, (struct sockaddr *)address, &len, 1);
newsock62net/unix/sock.cstatic int unix_proto_dup(struct socket *newsock, struct socket *oldsock);
newsock69net/unix/sock.cstatic int unix_proto_accept(struct socket *sock, struct socket *newsock, 
newsock342net/unix/sock.cstatic int unix_proto_dup(struct socket *newsock, struct socket *oldsock)
newsock345net/unix/sock.creturn(unix_proto_create(newsock, upd->protocol));
newsock536net/unix/sock.cstatic int unix_proto_accept(struct socket *sock, struct socket *newsock, int flags)
newsock563net/unix/sock.cnewsock->conn = clientsock;
newsock564net/unix/sock.cclientsock->conn = newsock;
newsock566net/unix/sock.cnewsock->state = SS_CONNECTED;
newsock568net/unix/sock.cUN_DATA(newsock)->peerupd       = UN_DATA(clientsock);
newsock569net/unix/sock.cUN_DATA(newsock)->sockaddr_un        = UN_DATA(sock)->sockaddr_un;
newsock570net/unix/sock.cUN_DATA(newsock)->sockaddr_len       = UN_DATA(sock)->sockaddr_len;