• Home
  • Raw
  • Download

Lines Matching refs:newsk

473 	struct sock *newsk;  in inet_csk_accept()  local
499 newsk = req->sk; in inet_csk_accept()
519 if (newsk && mem_cgroup_sockets_enabled) { in inet_csk_accept()
525 lock_sock(newsk); in inet_csk_accept()
530 amt = sk_mem_pages(newsk->sk_forward_alloc + in inet_csk_accept()
531 atomic_read(&newsk->sk_rmem_alloc)); in inet_csk_accept()
532 mem_cgroup_sk_alloc(newsk); in inet_csk_accept()
533 if (newsk->sk_memcg && amt) in inet_csk_accept()
534 mem_cgroup_charge_skmem(newsk->sk_memcg, amt); in inet_csk_accept()
536 release_sock(newsk); in inet_csk_accept()
541 if (newsk) in inet_csk_accept()
542 inet_init_csk_locks(newsk); in inet_csk_accept()
544 return newsk; in inet_csk_accept()
546 newsk = NULL; in inet_csk_accept()
633 struct sock *newsk, in inet_csk_route_child_sock() argument
638 struct inet_sock *newinet = inet_sk(newsk); in inet_csk_route_child_sock()
818 static void inet_clone_ulp(const struct request_sock *req, struct sock *newsk, in inet_clone_ulp() argument
821 struct inet_connection_sock *icsk = inet_csk(newsk); in inet_clone_ulp()
826 icsk->icsk_ulp_ops->clone(req, newsk, priority); in inet_clone_ulp()
841 struct sock *newsk = sk_clone_lock(sk, priority); in inet_csk_clone_lock() local
843 if (newsk) { in inet_csk_clone_lock()
844 struct inet_connection_sock *newicsk = inet_csk(newsk); in inet_csk_clone_lock()
846 newsk->sk_wait_pending = 0; in inet_csk_clone_lock()
847 inet_sk_set_state(newsk, TCP_SYN_RECV); in inet_csk_clone_lock()
850 inet_sk(newsk)->inet_dport = inet_rsk(req)->ir_rmt_port; in inet_csk_clone_lock()
851 inet_sk(newsk)->inet_num = inet_rsk(req)->ir_num; in inet_csk_clone_lock()
852 inet_sk(newsk)->inet_sport = htons(inet_rsk(req)->ir_num); in inet_csk_clone_lock()
855 sock_reset_flag(newsk, SOCK_RCU_FREE); in inet_csk_clone_lock()
857 inet_sk(newsk)->mc_list = NULL; in inet_csk_clone_lock()
859 newsk->sk_mark = inet_rsk(req)->ir_mark; in inet_csk_clone_lock()
860 atomic64_set(&newsk->sk_cookie, in inet_csk_clone_lock()
871 inet_clone_ulp(req, newsk, priority); in inet_csk_clone_lock()
873 security_inet_csk_clone(newsk, req); in inet_csk_clone_lock()
875 return newsk; in inet_csk_clone_lock()