tag | line | file | source code |
newsock | 47 | net/kern_sock.h | int (*dup)(struct socket *newsock, struct socket *oldsock); |
newsock | 54 | net/kern_sock.h | int (*accept)(struct socket *sock, struct socket *newsock, int flags); |
newsock | 569 | net/socket.c | struct socket *sock, *newsock; |
newsock | 584 | net/socket.c | if (!(newsock = sock_alloc(0))) { |
newsock | 588 | net/socket.c | newsock->type = sock->type; |
newsock | 589 | net/socket.c | newsock->ops = sock->ops; |
newsock | 590 | net/socket.c | if ((i = sock->ops->dup(newsock, sock)) < 0) { |
newsock | 591 | net/socket.c | sock_release(newsock); |
newsock | 595 | net/socket.c | i = newsock->ops->accept(sock, newsock, file->f_flags); |
newsock | 599 | net/socket.c | sock_release(newsock); |
newsock | 603 | net/socket.c | if ((fd = get_fd(SOCK_INODE(newsock))) < 0) { |
newsock | 604 | net/socket.c | sock_release(newsock); |
newsock | 609 | net/socket.c | sock, newsock)); |
newsock | 612 | net/socket.c | newsock->ops->getname(newsock, upeer_sockaddr, |
newsock | 128 | net/tcp/sock.c | static int ip_proto_dup(struct socket *newsock, struct socket *oldsock); |
newsock | 135 | net/tcp/sock.c | static int ip_proto_accept(struct socket *sock, struct socket *newsock, int flags); |
newsock | 1106 | net/tcp/sock.c | ip_proto_dup (struct socket *newsock, struct socket *oldsock) |
newsock | 1108 | net/tcp/sock.c | return (ip_proto_create (newsock, |
newsock | 1311 | net/tcp/sock.c | ip_proto_accept (struct socket *sock, struct socket *newsock, int flags) |
newsock | 1324 | net/tcp/sock.c | if (newsock->data) |
newsock | 1325 | net/tcp/sock.c | kfree_s (newsock->data, sizeof (struct sock)); |
newsock | 1327 | net/tcp/sock.c | newsock->data = NULL; |
newsock | 1349 | net/tcp/sock.c | newsock->data = (void *)sk2; |
newsock | 1350 | net/tcp/sock.c | sk2->sleep = (void *)newsock->wait; |
newsock | 1351 | net/tcp/sock.c | newsock->conn = NULL; |
newsock | 1364 | net/tcp/sock.c | newsock->data = NULL; |
newsock | 1375 | net/tcp/sock.c | newsock->data = NULL; |
newsock | 1378 | net/tcp/sock.c | newsock->state = SS_CONNECTED; |
newsock | 45 | net/unix.c | static int unix_proto_dup(struct socket *newsock, struct socket *oldsock); |
newsock | 52 | net/unix.c | static int unix_proto_accept(struct socket *sock, struct socket *newsock, |
newsock | 286 | net/unix.c | unix_proto_dup(struct socket *newsock, struct socket *oldsock) |
newsock | 290 | net/unix.c | return unix_proto_create(newsock, upd->protocol); |
newsock | 463 | net/unix.c | unix_proto_accept(struct socket *sock, struct socket *newsock, int flags) |
newsock | 468 | net/unix.c | sock, newsock)); |
newsock | 490 | net/unix.c | newsock->conn = clientsock; |
newsock | 491 | net/unix.c | clientsock->conn = newsock; |
newsock | 493 | net/unix.c | newsock->state = SS_CONNECTED; |
newsock | 495 | net/unix.c | unix_data_ref (UN_DATA(newsock->conn)); |
newsock | 496 | net/unix.c | UN_DATA(newsock)->peerupd = UN_DATA(newsock->conn); |
newsock | 497 | net/unix.c | UN_DATA(newsock)->sockaddr_un = UN_DATA(sock)->sockaddr_un; |
newsock | 498 | net/unix.c | UN_DATA(newsock)->sockaddr_len = UN_DATA(sock)->sockaddr_len; |
newsock | 499 | net/unix.c | UN_DATA(newsock->conn)->sockaddr_un = UN_DATA(sock)->sockaddr_un; |
newsock | 500 | net/unix.c | UN_DATA(newsock->conn)->sockaddr_len = UN_DATA(sock)->sockaddr_len; |