tag | line | file | source code |
newsock | 43 | net/kern_sock.h | int (*dup)(struct socket *newsock, struct socket *oldsock); |
newsock | 50 | net/kern_sock.h | int (*accept)(struct socket *sock, struct socket *newsock); |
newsock | 570 | net/socket.c | struct socket *sock, *clientsock, *newsock; |
newsock | 599 | net/socket.c | if (!(newsock = sock_alloc(0))) { |
newsock | 603 | net/socket.c | newsock->type = sock->type; |
newsock | 604 | net/socket.c | newsock->ops = sock->ops; |
newsock | 605 | net/socket.c | if ((i = sock->ops->dup(newsock, sock)) < 0) { |
newsock | 606 | net/socket.c | sock_release(newsock); |
newsock | 610 | net/socket.c | if ((fd = get_fd(SOCK_INODE(newsock))) < 0) { |
newsock | 611 | net/socket.c | sock_release(newsock); |
newsock | 621 | net/socket.c | newsock->conn = clientsock; |
newsock | 622 | net/socket.c | clientsock->conn = newsock; |
newsock | 624 | net/socket.c | newsock->state = SS_CONNECTED; |
newsock | 625 | net/socket.c | newsock->ops->accept(sock, newsock); |
newsock | 627 | net/socket.c | sock, newsock, clientsock); |
newsock | 629 | net/socket.c | newsock->ops->getname(newsock, upeer_sockaddr, |
newsock | 44 | net/unix.c | static int unix_proto_dup(struct socket *newsock, struct socket *oldsock); |
newsock | 51 | net/unix.c | static int unix_proto_accept(struct socket *sock, struct socket *newsock); |
newsock | 187 | net/unix.c | unix_proto_dup(struct socket *newsock, struct socket *oldsock) |
newsock | 191 | net/unix.c | return unix_proto_create(newsock, upd->protocol); |
newsock | 340 | net/unix.c | unix_proto_accept(struct socket *sock, struct socket *newsock) |
newsock | 343 | net/unix.c | sock, newsock); |
newsock | 344 | net/unix.c | unix_data_ref(UN_DATA(newsock->conn)); |
newsock | 345 | net/unix.c | UN_DATA(newsock)->peerupd = UN_DATA(newsock->conn); |