taglinefilesource code
newsock95include/linux/net.hint  (*dup)    (struct socket *newsock, struct socket *oldsock);
newsock102include/linux/net.hint  (*accept)  (struct socket *sock, struct socket *newsock,
newsock1201net/appletalk/ddp.cstatic int atalk_dup(struct socket *newsock,struct socket *oldsock)
newsock1203net/appletalk/ddp.creturn(atalk_create(newsock,SOCK_DGRAM));
newsock1364net/appletalk/ddp.cstatic int atalk_accept(struct socket *sock, struct socket *newsock, int flags)
newsock1366net/appletalk/ddp.cif(newsock->data)
newsock1367net/appletalk/ddp.csk_free(newsock->data);
newsock1239net/ax25/af_ax25.cstatic int ax25_dup(struct socket *newsock, struct socket *oldsock)
newsock1243net/ax25/af_ax25.creturn ax25_create(newsock, sk->protocol);
newsock1515net/ax25/af_ax25.cstatic int ax25_accept(struct socket *sock, struct socket *newsock, int flags)
newsock1521net/ax25/af_ax25.cif (newsock->data)
newsock1522net/ax25/af_ax25.csk_free(newsock->data);
newsock1524net/ax25/af_ax25.cnewsock->data = NULL;
newsock1561net/ax25/af_ax25.cnewsock->data = newsk;
newsock732net/ipv4/af_inet.cstatic int inet_dup(struct socket *newsock, struct socket *oldsock)
newsock734net/ipv4/af_inet.creturn(inet_create(newsock,((struct sock *)(oldsock->data))->protocol));
newsock1006net/ipv4/af_inet.cstatic int inet_accept(struct socket *sock, struct socket *newsock, int flags)
newsock1019net/ipv4/af_inet.cif (newsock->data)
newsock1021net/ipv4/af_inet.cstruct sock *sk=(struct sock *)newsock->data;
newsock1022net/ipv4/af_inet.cnewsock->data=NULL;
newsock1046net/ipv4/af_inet.cnewsock->data = (void *)sk2;
newsock1047net/ipv4/af_inet.csk2->sleep = newsock->wait;
newsock1048net/ipv4/af_inet.csk2->socket = newsock;
newsock1049net/ipv4/af_inet.cnewsock->conn = NULL;
newsock1063net/ipv4/af_inet.cnewsock->data = NULL;
newsock1073net/ipv4/af_inet.cnewsock->data = NULL;
newsock1076net/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));
newsock594net/netrom/af_netrom.cstatic int nr_dup(struct socket *newsock, struct socket *oldsock)
newsock598net/netrom/af_netrom.creturn nr_create(newsock, sk->protocol);
newsock810net/netrom/af_netrom.cstatic int nr_accept(struct socket *sock, struct socket *newsock, int flags)
newsock816net/netrom/af_netrom.cif (newsock->data)
newsock817net/netrom/af_netrom.csk_free(newsock->data);
newsock819net/netrom/af_netrom.cnewsock->data = NULL;
newsock856net/netrom/af_netrom.cnewsock->data = newsk;
newsock736net/socket.cstruct socket *sock, *newsock;
newsock754net/socket.cif (!(newsock = sock_alloc())) 
newsock760net/socket.cnewsock->type = sock->type;
newsock761net/socket.cnewsock->ops = sock->ops;
newsock762net/socket.cif ((i = sock->ops->dup(newsock, sock)) < 0) 
newsock764net/socket.csock_release(newsock);
newsock768net/socket.ci = newsock->ops->accept(sock, newsock, file->f_flags);
newsock771net/socket.csock_release(newsock);
newsock775net/socket.cif ((fd = get_fd(SOCK_INODE(newsock))) < 0) 
newsock777net/socket.csock_release(newsock);
newsock784net/socket.cnewsock->ops->getname(newsock, (struct sockaddr *)address, &len, 1);
newsock347net/unix/af_unix.cstatic int unix_dup(struct socket *newsock, struct socket *oldsock)
newsock349net/unix/af_unix.creturn unix_create(newsock,0);
newsock606net/unix/af_unix.cstatic int unix_accept(struct socket *sock, struct socket *newsock, int flags)
newsock621net/unix/af_unix.cnewsk=newsock->data;