tag | line | file | source code |
mysock | 126 | include/linux/net.h | extern int sock_awaitconn(struct socket *mysock, struct socket *servsock); |
mysock | 364 | net/socket.c | sock_awaitconn(struct socket *mysock, struct socket *servsock) |
mysock | 370 | net/socket.c | mysock, servsock)); |
mysock | 378 | net/socket.c | mysock->next = NULL; |
mysock | 380 | net/socket.c | if (!(last = servsock->iconn)) servsock->iconn = mysock; |
mysock | 383 | net/socket.c | last->next = mysock; |
mysock | 385 | net/socket.c | mysock->state = SS_CONNECTING; |
mysock | 386 | net/socket.c | mysock->conn = servsock; |
mysock | 394 | net/socket.c | if (mysock->state != SS_CONNECTED) { |
mysock | 395 | net/socket.c | interruptible_sleep_on(mysock->wait); |
mysock | 396 | net/socket.c | if (mysock->state != SS_CONNECTED && |
mysock | 397 | net/socket.c | mysock->state != SS_DISCONNECTING) { |
mysock | 405 | net/socket.c | if (mysock->conn == servsock) { |
mysock | 407 | net/socket.c | if ((last = servsock->iconn) == mysock) |
mysock | 408 | net/socket.c | servsock->iconn = mysock->next; |
mysock | 410 | net/socket.c | while (last->next != mysock) last = last->next; |
mysock | 411 | net/socket.c | last->next = mysock->next; |
mysock | 415 | net/socket.c | return(mysock->conn ? -EINTR : -EACCES); |