taglinefilesource code
newsock92include/linux/net.hint  (*dup)    (struct socket *newsock, struct socket *oldsock);
newsock99include/linux/net.hint  (*accept)  (struct socket *sock, struct socket *newsock,
newsock1180net/appletalk/ddp.cstatic int atalk_dup(struct socket *newsock,struct socket *oldsock)
newsock1182net/appletalk/ddp.creturn(atalk_create(newsock,SOCK_DGRAM));
newsock1343net/appletalk/ddp.cstatic int atalk_accept(struct socket *sock, struct socket *newsock, int flags)
newsock1345net/appletalk/ddp.cif(newsock->data)
newsock1346net/appletalk/ddp.csk_free(newsock->data);
newsock1219net/ax25/af_ax25.cstatic int ax25_dup(struct socket *newsock, struct socket *oldsock)
newsock1223net/ax25/af_ax25.creturn ax25_create(newsock, sk->protocol);
newsock1495net/ax25/af_ax25.cstatic int ax25_accept(struct socket *sock, struct socket *newsock, int flags)
newsock1501net/ax25/af_ax25.cif (newsock->data)
newsock1502net/ax25/af_ax25.csk_free(newsock->data);
newsock1504net/ax25/af_ax25.cnewsock->data = NULL;
newsock1541net/ax25/af_ax25.cnewsock->data = newsk;
newsock737net/ipv4/af_inet.cstatic int inet_dup(struct socket *newsock, struct socket *oldsock)
newsock739net/ipv4/af_inet.creturn(inet_create(newsock,((struct sock *)(oldsock->data))->protocol));
newsock1011net/ipv4/af_inet.cstatic int inet_accept(struct socket *sock, struct socket *newsock, int flags)
newsock1024net/ipv4/af_inet.cif (newsock->data)
newsock1026net/ipv4/af_inet.cstruct sock *sk=(struct sock *)newsock->data;
newsock1027net/ipv4/af_inet.cnewsock->data=NULL;
newsock1051net/ipv4/af_inet.cnewsock->data = (void *)sk2;
newsock1052net/ipv4/af_inet.csk2->sleep = newsock->wait;
newsock1053net/ipv4/af_inet.csk2->socket = newsock;
newsock1054net/ipv4/af_inet.cnewsock->conn = NULL;
newsock1068net/ipv4/af_inet.cnewsock->data = NULL;
newsock1078net/ipv4/af_inet.cnewsock->data = NULL;
newsock1081net/ipv4/af_inet.cnewsock->state = SS_CONNECTED;
newsock1739net/ipx/af_ipx.cstatic int ipx_dup(struct socket *newsock,struct socket *oldsock)
newsock1741net/ipx/af_ipx.creturn(ipx_create(newsock,SOCK_DGRAM));
newsock1909net/ipx/af_ipx.cstatic int ipx_accept(struct socket *sock, struct socket *newsock, int flags)
newsock1911net/ipx/af_ipx.cif(newsock->data) {
newsock1912net/ipx/af_ipx.ckfree_s(newsock->data,sizeof(ipx_socket));
newsock655net/netrom/af_netrom.cstatic int nr_dup(struct socket *newsock, struct socket *oldsock)
newsock659net/netrom/af_netrom.creturn nr_create(newsock, sk->protocol);
newsock871net/netrom/af_netrom.cstatic int nr_accept(struct socket *sock, struct socket *newsock, int flags)
newsock877net/netrom/af_netrom.cif (newsock->data)
newsock878net/netrom/af_netrom.csk_free(newsock->data);
newsock880net/netrom/af_netrom.cnewsock->data = NULL;
newsock917net/netrom/af_netrom.cnewsock->data = newsk;
newsock737net/socket.cstruct socket *sock, *newsock;
newsock755net/socket.cif (!(newsock = sock_alloc())) 
newsock761net/socket.cnewsock->type = sock->type;
newsock762net/socket.cnewsock->ops = sock->ops;
newsock763net/socket.cif ((i = sock->ops->dup(newsock, sock)) < 0) 
newsock765net/socket.csock_release(newsock);
newsock769net/socket.ci = newsock->ops->accept(sock, newsock, file->f_flags);
newsock772net/socket.csock_release(newsock);
newsock776net/socket.cif ((fd = get_fd(SOCK_INODE(newsock))) < 0) 
newsock778net/socket.csock_release(newsock);
newsock785net/socket.cnewsock->ops->getname(newsock, (struct sockaddr *)address, &len, 1);
newsock329net/unix/af_unix.cstatic int unix_dup(struct socket *newsock, struct socket *oldsock)
newsock331net/unix/af_unix.creturn unix_create(newsock,0);
newsock588net/unix/af_unix.cstatic int unix_accept(struct socket *sock, struct socket *newsock, int flags)
newsock603net/unix/af_unix.cnewsk=newsock->data;