taglinefilesource code
newsock94include/linux/net.hint  (*dup)    (struct socket *newsock, struct socket *oldsock);
newsock101include/linux/net.hint  (*accept)  (struct socket *sock, struct socket *newsock,
newsock1124net/appletalk/ddp.cstatic int atalk_dup(struct socket *newsock,struct socket *oldsock)
newsock1126net/appletalk/ddp.creturn(atalk_create(newsock,SOCK_DGRAM));
newsock1287net/appletalk/ddp.cstatic int atalk_accept(struct socket *sock, struct socket *newsock, int flags)
newsock1289net/appletalk/ddp.cif(newsock->data)
newsock1290net/appletalk/ddp.ckfree_s(newsock->data,sizeof(atalk_socket));
newsock1009net/ax25/af_ax25.cstatic int ax25_dup(struct socket *newsock, struct socket *oldsock)
newsock1013net/ax25/af_ax25.creturn ax25_create(newsock, sk->protocol);
newsock1251net/ax25/af_ax25.cstatic int ax25_accept(struct socket *sock, struct socket *newsock, int flags)
newsock1257net/ax25/af_ax25.cif (newsock->data)
newsock1258net/ax25/af_ax25.ckfree_s(newsock->data, sizeof(struct sock));
newsock1260net/ax25/af_ax25.cnewsock->data = NULL;
newsock1295net/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));
newsock1066net/ipv4/af_inet.cstatic int inet_accept(struct socket *sock, struct socket *newsock, int flags)
newsock1078net/ipv4/af_inet.cif (newsock->data)
newsock1080net/ipv4/af_inet.cstruct sock *sk=(struct sock *)newsock->data;
newsock1081net/ipv4/af_inet.cnewsock->data=NULL;
newsock1105net/ipv4/af_inet.cnewsock->data = (void *)sk2;
newsock1106net/ipv4/af_inet.csk2->sleep = newsock->wait;
newsock1107net/ipv4/af_inet.csk2->socket = newsock;
newsock1108net/ipv4/af_inet.cnewsock->conn = NULL;
newsock1122net/ipv4/af_inet.cnewsock->data = NULL;
newsock1134net/ipv4/af_inet.cnewsock->data = NULL;
newsock1137net/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));
newsock613net/netrom/af_netrom.cstatic int nr_dup(struct socket *newsock, struct socket *oldsock)
newsock617net/netrom/af_netrom.creturn nr_create(newsock, sk->protocol);
newsock832net/netrom/af_netrom.cstatic int nr_accept(struct socket *sock, struct socket *newsock, int flags)
newsock838net/netrom/af_netrom.cif (newsock->data)
newsock839net/netrom/af_netrom.ckfree_s(newsock->data, sizeof(struct sock));
newsock841net/netrom/af_netrom.cnewsock->data = NULL;
newsock876net/netrom/af_netrom.cnewsock->data = newsk;
newsock756net/socket.cstruct socket *sock, *newsock;
newsock774net/socket.cif (!(newsock = sock_alloc())) 
newsock780net/socket.cnewsock->type = sock->type;
newsock781net/socket.cnewsock->ops = sock->ops;
newsock782net/socket.cif ((i = sock->ops->dup(newsock, sock)) < 0) 
newsock784net/socket.csock_release(newsock);
newsock788net/socket.ci = newsock->ops->accept(sock, newsock, file->f_flags);
newsock791net/socket.csock_release(newsock);
newsock795net/socket.cif ((fd = get_fd(SOCK_INODE(newsock))) < 0) 
newsock797net/socket.csock_release(newsock);
newsock803net/socket.cnewsock->ops->getname(newsock, (struct sockaddr *)address, &len, 1);
newsock317net/unix/af_unix.cstatic int unix_dup(struct socket *newsock, struct socket *oldsock)
newsock319net/unix/af_unix.creturn unix_create(newsock,0);
newsock569net/unix/af_unix.cstatic int unix_accept(struct socket *sock, struct socket *newsock, int flags)
newsock584net/unix/af_unix.cnewsk=newsock->data;