tag | line | file | source code |
mysock | 59 | net/kern_sock.h | extern int sock_awaitconn(struct socket *mysock, struct socket *servsock); |
mysock | 350 | net/socket.c | sock_awaitconn(struct socket *mysock, struct socket *servsock) |
mysock | 355 | net/socket.c | mysock, servsock); |
mysock | 364 | net/socket.c | mysock->next = NULL; |
mysock | 367 | net/socket.c | servsock->iconn = mysock; |
mysock | 371 | net/socket.c | last->next = mysock; |
mysock | 373 | net/socket.c | mysock->state = SS_CONNECTING; |
mysock | 374 | net/socket.c | mysock->conn = servsock; |
mysock | 382 | net/socket.c | if (mysock->state != SS_CONNECTED) { |
mysock | 383 | net/socket.c | interruptible_sleep_on(mysock->wait); |
mysock | 384 | net/socket.c | if (mysock->state != SS_CONNECTED) { |
mysock | 392 | net/socket.c | if (mysock->conn == servsock) { |
mysock | 394 | net/socket.c | if ((last = servsock->iconn) == mysock) |
mysock | 395 | net/socket.c | servsock->iconn = mysock->next; |
mysock | 397 | net/socket.c | while (last->next != mysock) |
mysock | 399 | net/socket.c | last->next = mysock->next; |
mysock | 403 | net/socket.c | return mysock->conn ? -EINTR : -EACCES; |