taglinefilesource code
newsock88include/linux/net.hint  (*dup)    (struct socket *newsock, struct socket *oldsock);
newsock95include/linux/net.hint  (*accept)  (struct socket *sock, struct socket *newsock,
newsock681net/inet/af_inet.cstatic int inet_dup(struct socket *newsock, struct socket *oldsock)
newsock683net/inet/af_inet.creturn(inet_create(newsock,((struct sock *)(oldsock->data))->protocol));
newsock926net/inet/af_inet.cstatic int inet_accept(struct socket *sock, struct socket *newsock, int flags)
newsock938net/inet/af_inet.cif (newsock->data)
newsock940net/inet/af_inet.cstruct sock *sk=(struct sock *)newsock->data;
newsock941net/inet/af_inet.cnewsock->data=NULL;
newsock967net/inet/af_inet.cnewsock->data = (void *)sk2;
newsock968net/inet/af_inet.csk2->sleep = newsock->wait;
newsock969net/inet/af_inet.cnewsock->conn = NULL;
newsock982net/inet/af_inet.cnewsock->data = NULL;
newsock994net/inet/af_inet.cnewsock->data = NULL;
newsock997net/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));
newsock765net/inet/ipx.cstatic int ipx_accept(struct socket *sock, struct socket *newsock, int flags)
newsock767net/inet/ipx.cif(newsock->data)
newsock768net/inet/ipx.ckfree_s(newsock->data,sizeof(ipx_socket));
newsock755net/socket.cstruct socket *sock, *newsock;
newsock773net/socket.cif (!(newsock = sock_alloc(0))) 
newsock778net/socket.cnewsock->type = sock->type;
newsock779net/socket.cnewsock->ops = sock->ops;
newsock780net/socket.cif ((i = sock->ops->dup(newsock, sock)) < 0) 
newsock782net/socket.csock_release(newsock);
newsock786net/socket.ci = newsock->ops->accept(sock, newsock, file->f_flags);
newsock789net/socket.csock_release(newsock);
newsock793net/socket.cif ((fd = get_fd(SOCK_INODE(newsock))) < 0) 
newsock795net/socket.csock_release(newsock);
newsock801net/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;