tag | line | file | source code |
mysock | 138 | include/linux/net.h | extern int sock_awaitconn(struct socket *mysock, struct socket *servsock, int flags); |
mysock | 485 | net/socket.c | int sock_awaitconn(struct socket *mysock, struct socket *servsock, int flags) |
mysock | 501 | net/socket.c | mysock->next = NULL; |
mysock | 504 | net/socket.c | servsock->iconn = mysock; |
mysock | 509 | net/socket.c | last->next = mysock; |
mysock | 511 | net/socket.c | mysock->state = SS_CONNECTING; |
mysock | 512 | net/socket.c | mysock->conn = servsock; |
mysock | 522 | net/socket.c | if (mysock->state != SS_CONNECTED) |
mysock | 527 | net/socket.c | interruptible_sleep_on(mysock->wait); |
mysock | 528 | net/socket.c | if (mysock->state != SS_CONNECTED && |
mysock | 529 | net/socket.c | mysock->state != SS_DISCONNECTING) |
mysock | 538 | net/socket.c | if (mysock->conn == servsock) |
mysock | 541 | net/socket.c | if ((last = servsock->iconn) == mysock) |
mysock | 542 | net/socket.c | servsock->iconn = mysock->next; |
mysock | 545 | net/socket.c | while (last->next != mysock) |
mysock | 547 | net/socket.c | last->next = mysock->next; |
mysock | 551 | net/socket.c | return(mysock->conn ? -EINTR : -EACCES); |