tag | line | file | source code |
mysock | 133 | include/linux/net.h | extern int sock_awaitconn(struct socket *mysock, struct socket *servsock, int flags); |
mysock | 583 | net/socket.c | int sock_awaitconn(struct socket *mysock, struct socket *servsock, int flags) |
mysock | 599 | net/socket.c | mysock->next = NULL; |
mysock | 602 | net/socket.c | servsock->iconn = mysock; |
mysock | 607 | net/socket.c | last->next = mysock; |
mysock | 609 | net/socket.c | mysock->state = SS_CONNECTING; |
mysock | 610 | net/socket.c | mysock->conn = servsock; |
mysock | 620 | net/socket.c | if (mysock->state != SS_CONNECTED) |
mysock | 625 | net/socket.c | interruptible_sleep_on(mysock->wait); |
mysock | 626 | net/socket.c | if (mysock->state != SS_CONNECTED && |
mysock | 627 | net/socket.c | mysock->state != SS_DISCONNECTING) |
mysock | 636 | net/socket.c | if (mysock->conn == servsock) |
mysock | 639 | net/socket.c | if ((last = servsock->iconn) == mysock) |
mysock | 640 | net/socket.c | servsock->iconn = mysock->next; |
mysock | 643 | net/socket.c | while (last->next != mysock) |
mysock | 645 | net/socket.c | last->next = mysock->next; |
mysock | 649 | net/socket.c | return(mysock->conn ? -EINTR : -EACCES); |