tag | line | file | source code |
mysock | 134 | include/linux/net.h | extern int sock_awaitconn(struct socket *mysock, struct socket *servsock, int flags); |
mysock | 484 | net/socket.c | int sock_awaitconn(struct socket *mysock, struct socket *servsock, int flags) |
mysock | 500 | net/socket.c | mysock->next = NULL; |
mysock | 503 | net/socket.c | servsock->iconn = mysock; |
mysock | 508 | net/socket.c | last->next = mysock; |
mysock | 510 | net/socket.c | mysock->state = SS_CONNECTING; |
mysock | 511 | net/socket.c | mysock->conn = servsock; |
mysock | 521 | net/socket.c | if (mysock->state != SS_CONNECTED) |
mysock | 526 | net/socket.c | interruptible_sleep_on(mysock->wait); |
mysock | 527 | net/socket.c | if (mysock->state != SS_CONNECTED && |
mysock | 528 | net/socket.c | mysock->state != SS_DISCONNECTING) |
mysock | 537 | net/socket.c | if (mysock->conn == servsock) |
mysock | 540 | net/socket.c | if ((last = servsock->iconn) == mysock) |
mysock | 541 | net/socket.c | servsock->iconn = mysock->next; |
mysock | 544 | net/socket.c | while (last->next != mysock) |
mysock | 546 | net/socket.c | last->next = mysock->next; |
mysock | 550 | net/socket.c | return(mysock->conn ? -EINTR : -EACCES); |