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));
newsock1012net/ax25/af_ax25.cstatic int ax25_dup(struct socket *newsock, struct socket *oldsock)
newsock1016net/ax25/af_ax25.creturn ax25_create(newsock, sk->protocol);
newsock1254net/ax25/af_ax25.cstatic int ax25_accept(struct socket *sock, struct socket *newsock, int flags)
newsock1260net/ax25/af_ax25.cif (newsock->data)
newsock1261net/ax25/af_ax25.ckfree_s(newsock->data, sizeof(struct sock));
newsock1263net/ax25/af_ax25.cnewsock->data = NULL;
newsock1298net/ax25/af_ax25.cnewsock->data = newsk;
newsock768net/ipv4/af_inet.cstatic int inet_dup(struct socket *newsock, struct socket *oldsock)
newsock770net/ipv4/af_inet.creturn(inet_create(newsock,((struct sock *)(oldsock->data))->protocol));
newsock1044net/ipv4/af_inet.cstatic int inet_accept(struct socket *sock, struct socket *newsock, int flags)
newsock1056net/ipv4/af_inet.cif (newsock->data)
newsock1058net/ipv4/af_inet.cstruct sock *sk=(struct sock *)newsock->data;
newsock1059net/ipv4/af_inet.cnewsock->data=NULL;
newsock1081net/ipv4/af_inet.cnewsock->data = (void *)sk2;
newsock1082net/ipv4/af_inet.csk2->sleep = newsock->wait;
newsock1083net/ipv4/af_inet.csk2->socket = newsock;
newsock1084net/ipv4/af_inet.cnewsock->conn = NULL;
newsock1098net/ipv4/af_inet.cnewsock->data = NULL;
newsock1109net/ipv4/af_inet.cnewsock->data = NULL;
newsock1112net/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));
newsock614net/netrom/af_netrom.cstatic int nr_dup(struct socket *newsock, struct socket *oldsock)
newsock618net/netrom/af_netrom.creturn nr_create(newsock, sk->protocol);
newsock833net/netrom/af_netrom.cstatic int nr_accept(struct socket *sock, struct socket *newsock, int flags)
newsock839net/netrom/af_netrom.cif (newsock->data)
newsock840net/netrom/af_netrom.ckfree_s(newsock->data, sizeof(struct sock));
newsock842net/netrom/af_netrom.cnewsock->data = NULL;
newsock877net/netrom/af_netrom.cnewsock->data = newsk;
newsock680net/socket.cstruct socket *sock, *newsock;
newsock698net/socket.cif (!(newsock = sock_alloc())) 
newsock704net/socket.cnewsock->type = sock->type;
newsock705net/socket.cnewsock->ops = sock->ops;
newsock706net/socket.cif ((i = sock->ops->dup(newsock, sock)) < 0) 
newsock708net/socket.csock_release(newsock);
newsock712net/socket.ci = newsock->ops->accept(sock, newsock, file->f_flags);
newsock715net/socket.csock_release(newsock);
newsock719net/socket.cif ((fd = get_fd(SOCK_INODE(newsock))) < 0) 
newsock721net/socket.csock_release(newsock);
newsock727net/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;