taglinefilesource code
newsock94include/linux/net.hint  (*dup)    (struct socket *newsock, struct socket *oldsock);
newsock101include/linux/net.hint  (*accept)  (struct socket *sock, struct socket *newsock,
newsock1125net/appletalk/ddp.cstatic int atalk_dup(struct socket *newsock,struct socket *oldsock)
newsock1127net/appletalk/ddp.creturn(atalk_create(newsock,SOCK_DGRAM));
newsock1288net/appletalk/ddp.cstatic int atalk_accept(struct socket *sock, struct socket *newsock, int flags)
newsock1290net/appletalk/ddp.cif(newsock->data)
newsock1291net/appletalk/ddp.ckfree_s(newsock->data,sizeof(atalk_socket));
newsock1032net/ax25/af_ax25.cstatic int ax25_dup(struct socket *newsock, struct socket *oldsock)
newsock1036net/ax25/af_ax25.creturn ax25_create(newsock, sk->protocol);
newsock1272net/ax25/af_ax25.cstatic int ax25_accept(struct socket *sock, struct socket *newsock, int flags)
newsock1278net/ax25/af_ax25.cif (newsock->data)
newsock1279net/ax25/af_ax25.ckfree_s(newsock->data, sizeof(struct sock));
newsock1281net/ax25/af_ax25.cnewsock->data = NULL;
newsock1316net/ax25/af_ax25.cnewsock->data = newsk;
newsock775net/ipv4/af_inet.cstatic int inet_dup(struct socket *newsock, struct socket *oldsock)
newsock777net/ipv4/af_inet.creturn(inet_create(newsock,((struct sock *)(oldsock->data))->protocol));
newsock1057net/ipv4/af_inet.cstatic int inet_accept(struct socket *sock, struct socket *newsock, int flags)
newsock1069net/ipv4/af_inet.cif (newsock->data)
newsock1071net/ipv4/af_inet.cstruct sock *sk=(struct sock *)newsock->data;
newsock1072net/ipv4/af_inet.cnewsock->data=NULL;
newsock1094net/ipv4/af_inet.cnewsock->data = (void *)sk2;
newsock1095net/ipv4/af_inet.csk2->sleep = newsock->wait;
newsock1096net/ipv4/af_inet.csk2->socket = newsock;
newsock1097net/ipv4/af_inet.cnewsock->conn = NULL;
newsock1111net/ipv4/af_inet.cnewsock->data = NULL;
newsock1122net/ipv4/af_inet.cnewsock->data = NULL;
newsock1125net/ipv4/af_inet.cnewsock->state = SS_CONNECTED;
newsock1445net/ipx/af_ipx.cstatic int ipx_dup(struct socket *newsock,struct socket *oldsock)
newsock1447net/ipx/af_ipx.creturn(ipx_create(newsock,SOCK_DGRAM));
newsock1554net/ipx/af_ipx.cstatic int ipx_accept(struct socket *sock, struct socket *newsock, int flags)
newsock1556net/ipx/af_ipx.cif(newsock->data)
newsock1557net/ipx/af_ipx.ckfree_s(newsock->data,sizeof(ipx_socket));
newsock603net/netrom/af_netrom.cstatic int nr_dup(struct socket *newsock, struct socket *oldsock)
newsock607net/netrom/af_netrom.creturn nr_create(newsock, sk->protocol);
newsock834net/netrom/af_netrom.cstatic int nr_accept(struct socket *sock, struct socket *newsock, int flags)
newsock840net/netrom/af_netrom.cif (newsock->data)
newsock841net/netrom/af_netrom.ckfree_s(newsock->data, sizeof(struct sock));
newsock843net/netrom/af_netrom.cnewsock->data = NULL;
newsock878net/netrom/af_netrom.cnewsock->data = newsk;
newsock682net/socket.cstruct socket *sock, *newsock;
newsock700net/socket.cif (!(newsock = sock_alloc())) 
newsock706net/socket.cnewsock->type = sock->type;
newsock707net/socket.cnewsock->ops = sock->ops;
newsock708net/socket.cif ((i = sock->ops->dup(newsock, sock)) < 0) 
newsock710net/socket.csock_release(newsock);
newsock714net/socket.ci = newsock->ops->accept(sock, newsock, file->f_flags);
newsock717net/socket.csock_release(newsock);
newsock721net/socket.cif ((fd = get_fd(SOCK_INODE(newsock))) < 0) 
newsock723net/socket.csock_release(newsock);
newsock729net/socket.cnewsock->ops->getname(newsock, (struct sockaddr *)address, &len, 1);
newsock318net/unix/af_unix.cstatic int unix_dup(struct socket *newsock, struct socket *oldsock)
newsock320net/unix/af_unix.creturn unix_create(newsock,0);
newsock570net/unix/af_unix.cstatic int unix_accept(struct socket *sock, struct socket *newsock, int flags)
newsock585net/unix/af_unix.cnewsk=newsock->data;