tag | line | file | source code |
mysock | 128 | include/linux/net.h | extern int sock_awaitconn(struct socket *mysock, struct socket *servsock); |
mysock | 353 | net/socket.c | sock_awaitconn(struct socket *mysock, struct socket *servsock) |
mysock | 359 | net/socket.c | mysock, servsock)); |
mysock | 367 | net/socket.c | mysock->next = NULL; |
mysock | 369 | net/socket.c | if (!(last = servsock->iconn)) servsock->iconn = mysock; |
mysock | 372 | net/socket.c | last->next = mysock; |
mysock | 374 | net/socket.c | mysock->state = SS_CONNECTING; |
mysock | 375 | net/socket.c | mysock->conn = servsock; |
mysock | 383 | net/socket.c | if (mysock->state != SS_CONNECTED) { |
mysock | 384 | net/socket.c | interruptible_sleep_on(mysock->wait); |
mysock | 385 | net/socket.c | if (mysock->state != SS_CONNECTED && |
mysock | 386 | net/socket.c | mysock->state != SS_DISCONNECTING) { |
mysock | 394 | net/socket.c | if (mysock->conn == servsock) { |
mysock | 396 | net/socket.c | if ((last = servsock->iconn) == mysock) |
mysock | 397 | net/socket.c | servsock->iconn = mysock->next; |
mysock | 399 | net/socket.c | while (last->next != mysock) last = last->next; |
mysock | 400 | net/socket.c | last->next = mysock->next; |
mysock | 404 | net/socket.c | return(mysock->conn ? -EINTR : -EACCES); |