taglinefilesource code
newsock92include/linux/net.hint  (*dup)    (struct socket *newsock, struct socket *oldsock);
newsock99include/linux/net.hint  (*accept)  (struct socket *sock, struct socket *newsock,
newsock1112net/appletalk/ddp.cstatic int atalk_dup(struct socket *newsock,struct socket *oldsock)
newsock1114net/appletalk/ddp.creturn(atalk_create(newsock,SOCK_DGRAM));
newsock1275net/appletalk/ddp.cstatic int atalk_accept(struct socket *sock, struct socket *newsock, int flags)
newsock1277net/appletalk/ddp.cif(newsock->data)
newsock1278net/appletalk/ddp.ckfree_s(newsock->data,sizeof(atalk_socket));
newsock902net/ax25/af_ax25.cstatic int ax25_dup(struct socket *newsock, struct socket *oldsock)
newsock906net/ax25/af_ax25.creturn ax25_create(newsock, sk->protocol);
newsock1144net/ax25/af_ax25.cstatic int ax25_accept(struct socket *sock, struct socket *newsock, int flags)
newsock1150net/ax25/af_ax25.cif (newsock->data)
newsock1151net/ax25/af_ax25.ckfree_s(newsock->data, sizeof(struct sock));
newsock1153net/ax25/af_ax25.cnewsock->data = NULL;
newsock1188net/ax25/af_ax25.cnewsock->data = newsk;
newsock756net/ipv4/af_inet.cstatic int inet_dup(struct socket *newsock, struct socket *oldsock)
newsock758net/ipv4/af_inet.creturn(inet_create(newsock,((struct sock *)(oldsock->data))->protocol));
newsock1043net/ipv4/af_inet.cstatic int inet_accept(struct socket *sock, struct socket *newsock, int flags)
newsock1055net/ipv4/af_inet.cif (newsock->data)
newsock1057net/ipv4/af_inet.cstruct sock *sk=(struct sock *)newsock->data;
newsock1058net/ipv4/af_inet.cnewsock->data=NULL;
newsock1082net/ipv4/af_inet.cnewsock->data = (void *)sk2;
newsock1083net/ipv4/af_inet.csk2->sleep = newsock->wait;
newsock1084net/ipv4/af_inet.csk2->socket = newsock;
newsock1085net/ipv4/af_inet.cnewsock->conn = NULL;
newsock1099net/ipv4/af_inet.cnewsock->data = NULL;
newsock1111net/ipv4/af_inet.cnewsock->data = NULL;
newsock1114net/ipv4/af_inet.cnewsock->state = SS_CONNECTED;
newsock1435net/ipx/af_ipx.cstatic int ipx_dup(struct socket *newsock,struct socket *oldsock)
newsock1437net/ipx/af_ipx.creturn(ipx_create(newsock,SOCK_DGRAM));
newsock1544net/ipx/af_ipx.cstatic int ipx_accept(struct socket *sock, struct socket *newsock, int flags)
newsock1546net/ipx/af_ipx.cif(newsock->data)
newsock1547net/ipx/af_ipx.ckfree_s(newsock->data,sizeof(ipx_socket));
newsock569net/netrom/af_netrom.cstatic int nr_dup(struct socket *newsock, struct socket *oldsock)
newsock573net/netrom/af_netrom.creturn nr_create(newsock, sk->protocol);
newsock786net/netrom/af_netrom.cstatic int nr_accept(struct socket *sock, struct socket *newsock, int flags)
newsock792net/netrom/af_netrom.cif (newsock->data)
newsock793net/netrom/af_netrom.ckfree_s(newsock->data, sizeof(struct sock));
newsock795net/netrom/af_netrom.cnewsock->data = NULL;
newsock830net/netrom/af_netrom.cnewsock->data = newsk;
newsock755net/socket.cstruct socket *sock, *newsock;
newsock773net/socket.cif (!(newsock = sock_alloc())) 
newsock779net/socket.cnewsock->type = sock->type;
newsock780net/socket.cnewsock->ops = sock->ops;
newsock781net/socket.cif ((i = sock->ops->dup(newsock, sock)) < 0) 
newsock783net/socket.csock_release(newsock);
newsock787net/socket.ci = newsock->ops->accept(sock, newsock, file->f_flags);
newsock790net/socket.csock_release(newsock);
newsock794net/socket.cif ((fd = get_fd(SOCK_INODE(newsock))) < 0) 
newsock796net/socket.csock_release(newsock);
newsock802net/socket.cnewsock->ops->getname(newsock, (struct sockaddr *)address, &len, 1);
newsock61net/unix/sock.cstatic int unix_proto_dup(struct socket *newsock, struct socket *oldsock);
newsock68net/unix/sock.cstatic int unix_proto_accept(struct socket *sock, struct socket *newsock, 
newsock341net/unix/sock.cstatic int unix_proto_dup(struct socket *newsock, struct socket *oldsock)
newsock344net/unix/sock.creturn(unix_proto_create(newsock, upd->protocol));
newsock535net/unix/sock.cstatic int unix_proto_accept(struct socket *sock, struct socket *newsock, int flags)
newsock563net/unix/sock.cnewsock->conn = clientsock;
newsock564net/unix/sock.cclientsock->conn = newsock;
newsock566net/unix/sock.cnewsock->state = SS_CONNECTED;
newsock568net/unix/sock.cUN_DATA(newsock)->peerupd       = UN_DATA(clientsock);
newsock569net/unix/sock.cUN_DATA(newsock)->sockaddr_un        = UN_DATA(sock)->sockaddr_un;
newsock570net/unix/sock.cUN_DATA(newsock)->sockaddr_len       = UN_DATA(sock)->sockaddr_len;