Lines Matching defs:pending
33 * we create a new socket and refer to it as a pending socket. These pending
34 * sockets are placed on the pending connection list of the listener socket.
37 * existing pending connection. If it does, we process the packet for the
38 * pending socket. When that socket reaches the connected state, it is removed
39 * from the listener socket's pending list and enqueued in the listener
46 * - It is possible that these pending sockets will never reach the connected
56 * - Lock ordering for pending or accept queue sockets is:
59 * lock_sock_nested(pending, SINGLE_DEPTH_NESTING);
72 * and the listener socket's pending list and connected queue) ensures a
364 void vsock_add_pending(struct sock *listener, struct sock *pending)
370 vpending = vsock_sk(pending);
372 sock_hold(pending);
378 void vsock_remove_pending(struct sock *listener, struct sock *pending)
380 struct vsock_sock *vpending = vsock_sk(pending);
384 sock_put(pending);
598 /* We are not on the pending list and accept() did not reject
800 struct sock *pending;
804 pending = NULL; /* Compiler warning. */
824 while ((pending = vsock_dequeue_accept(sk)) != NULL) {
825 __vsock_release(pending, SINGLE_DEPTH_NESTING);
826 sock_put(pending);