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 | 353 | net/socket.c | servsock->iconn = mysock; |
mysock | 357 | net/socket.c | last->next = mysock; |
mysock | 359 | net/socket.c | mysock->state = SS_CONNECTING; |
mysock | 360 | net/socket.c | mysock->conn = servsock; |
mysock | 368 | net/socket.c | if (mysock->state != SS_CONNECTED) { |
mysock | 369 | net/socket.c | interruptible_sleep_on(mysock->wait); |
mysock | 370 | net/socket.c | if (mysock->state != SS_CONNECTED) { |
mysock | 378 | net/socket.c | if (mysock->conn == servsock) { |
mysock | 380 | net/socket.c | if ((last = servsock->iconn) == mysock) |
mysock | 381 | net/socket.c | servsock->iconn = mysock->next; |
mysock | 383 | net/socket.c | while (last->next != mysock) |
mysock | 385 | net/socket.c | last->next = mysock->next; |
mysock | 389 | net/socket.c | return mysock->conn ? -EINTR : -EACCES; |