Lines Matching refs:child
768 struct sock *child) in inet_child_forget() argument
770 sk->sk_prot->disconnect(child, O_NONBLOCK); in inet_child_forget()
772 sock_orphan(child); in inet_child_forget()
777 BUG_ON(tcp_sk(child)->fastopen_rsk != req); in inet_child_forget()
786 tcp_sk(child)->fastopen_rsk = NULL; in inet_child_forget()
788 inet_csk_destroy_sock(child); in inet_child_forget()
794 struct sock *child) in inet_csk_reqsk_queue_add() argument
800 inet_child_forget(sk, req, child); in inet_csk_reqsk_queue_add()
801 child = NULL; in inet_csk_reqsk_queue_add()
803 req->sk = child; in inet_csk_reqsk_queue_add()
813 return child; in inet_csk_reqsk_queue_add()
817 struct sock *inet_csk_complete_hashdance(struct sock *sk, struct sock *child, in inet_csk_complete_hashdance() argument
823 if (inet_csk_reqsk_queue_add(sk, req, child)) in inet_csk_complete_hashdance()
824 return child; in inet_csk_complete_hashdance()
827 bh_unlock_sock(child); in inet_csk_complete_hashdance()
828 sock_put(child); in inet_csk_complete_hashdance()
852 struct sock *child = req->sk; in inet_csk_listen_stop() local
855 bh_lock_sock(child); in inet_csk_listen_stop()
856 WARN_ON(sock_owned_by_user(child)); in inet_csk_listen_stop()
857 sock_hold(child); in inet_csk_listen_stop()
859 inet_child_forget(sk, req, child); in inet_csk_listen_stop()
860 bh_unlock_sock(child); in inet_csk_listen_stop()
862 sock_put(child); in inet_csk_listen_stop()