taglinefilesource code
newsock94include/linux/net.hint  (*dup)    (struct socket *newsock, struct socket *oldsock);
newsock101include/linux/net.hint  (*accept)  (struct socket *sock, struct socket *newsock,
newsock1145net/appletalk/ddp.cstatic int atalk_dup(struct socket *newsock,struct socket *oldsock)
newsock1147net/appletalk/ddp.creturn(atalk_create(newsock,SOCK_DGRAM));
newsock1308net/appletalk/ddp.cstatic int atalk_accept(struct socket *sock, struct socket *newsock, int flags)
newsock1310net/appletalk/ddp.cif(newsock->data)
newsock1311net/appletalk/ddp.ckfree_s(newsock->data,sizeof(atalk_socket));
newsock1035net/ax25/af_ax25.cstatic int ax25_dup(struct socket *newsock, struct socket *oldsock)
newsock1039net/ax25/af_ax25.creturn ax25_create(newsock, sk->protocol);
newsock1277net/ax25/af_ax25.cstatic int ax25_accept(struct socket *sock, struct socket *newsock, int flags)
newsock1283net/ax25/af_ax25.cif (newsock->data)
newsock1284net/ax25/af_ax25.ckfree_s(newsock->data, sizeof(struct sock));
newsock1286net/ax25/af_ax25.cnewsock->data = NULL;
newsock1321net/ax25/af_ax25.cnewsock->data = newsk;
newsock724net/ipv4/af_inet.cstatic int inet_dup(struct socket *newsock, struct socket *oldsock)
newsock726net/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)
newsock1023net/ipv4/af_inet.cif (newsock->data)
newsock1025net/ipv4/af_inet.cstruct sock *sk=(struct sock *)newsock->data;
newsock1026net/ipv4/af_inet.cnewsock->data=NULL;
newsock1048net/ipv4/af_inet.cnewsock->data = (void *)sk2;
newsock1049net/ipv4/af_inet.csk2->sleep = newsock->wait;
newsock1050net/ipv4/af_inet.csk2->socket = newsock;
newsock1051net/ipv4/af_inet.cnewsock->conn = NULL;
newsock1065net/ipv4/af_inet.cnewsock->data = NULL;
newsock1076net/ipv4/af_inet.cnewsock->data = NULL;
newsock1079net/ipv4/af_inet.cnewsock->state = SS_CONNECTED;
newsock1488net/ipx/af_ipx.cstatic int ipx_dup(struct socket *newsock,struct socket *oldsock)
newsock1490net/ipx/af_ipx.creturn(ipx_create(newsock,SOCK_DGRAM));
newsock1597net/ipx/af_ipx.cstatic int ipx_accept(struct socket *sock, struct socket *newsock, int flags)
newsock1599net/ipx/af_ipx.cif(newsock->data)
newsock1600net/ipx/af_ipx.ckfree_s(newsock->data,sizeof(ipx_socket));
newsock605net/netrom/af_netrom.cstatic int nr_dup(struct socket *newsock, struct socket *oldsock)
newsock609net/netrom/af_netrom.creturn nr_create(newsock, sk->protocol);
newsock836net/netrom/af_netrom.cstatic int nr_accept(struct socket *sock, struct socket *newsock, int flags)
newsock842net/netrom/af_netrom.cif (newsock->data)
newsock843net/netrom/af_netrom.ckfree_s(newsock->data, sizeof(struct sock));
newsock845net/netrom/af_netrom.cnewsock->data = NULL;
newsock880net/netrom/af_netrom.cnewsock->data = newsk;
newsock702net/socket.cstruct socket *sock, *newsock;
newsock720net/socket.cif (!(newsock = sock_alloc())) 
newsock726net/socket.cnewsock->type = sock->type;
newsock727net/socket.cnewsock->ops = sock->ops;
newsock728net/socket.cif ((i = sock->ops->dup(newsock, sock)) < 0) 
newsock730net/socket.csock_release(newsock);
newsock734net/socket.ci = newsock->ops->accept(sock, newsock, file->f_flags);
newsock737net/socket.csock_release(newsock);
newsock741net/socket.cif ((fd = get_fd(SOCK_INODE(newsock))) < 0) 
newsock743net/socket.csock_release(newsock);
newsock749net/socket.cnewsock->ops->getname(newsock, (struct sockaddr *)address, &len, 1);
newsock338net/unix/af_unix.cstatic int unix_dup(struct socket *newsock, struct socket *oldsock)
newsock340net/unix/af_unix.creturn unix_create(newsock,0);
newsock594net/unix/af_unix.cstatic int unix_accept(struct socket *sock, struct socket *newsock, int flags)
newsock609net/unix/af_unix.cnewsk=newsock->data;