tag | line | file | source code |
mysock | 79 | net/kern_sock.h | extern int sock_awaitconn(struct socket *mysock, struct socket *servsock); |
mysock | 336 | net/socket.c | sock_awaitconn(struct socket *mysock, struct socket *servsock) |
mysock | 341 | net/socket.c | mysock, servsock)); |
mysock | 350 | net/socket.c | mysock->next = NULL; |
mysock | 355 | net/socket.c | *last = mysock; |
mysock | 356 | net/socket.c | mysock->state = SS_CONNECTING; |
mysock | 357 | net/socket.c | mysock->conn = servsock; |
mysock | 365 | net/socket.c | if (mysock->state != SS_CONNECTED) { |
mysock | 366 | net/socket.c | interruptible_sleep_on(mysock->wait); |
mysock | 367 | net/socket.c | if (mysock->state != SS_CONNECTED && |
mysock | 368 | net/socket.c | mysock->state != SS_DISCONNECTING) |
mysock | 388 | net/socket.c | if (mysock->conn == servsock) { |
mysock | 392 | net/socket.c | if (*last == mysock) { |
mysock | 393 | net/socket.c | *last = mysock->next; |
mysock | 400 | net/socket.c | return mysock->conn ? -EINTR : -EACCES; |