newsk             985 drivers/crypto/chelsio/chtls/chtls_cm.c 			      struct sock *lsk, struct sock *newsk)
newsk             988 drivers/crypto/chelsio/chtls/chtls_cm.c 	__inet_inherit_port(lsk, newsk);
newsk            1035 drivers/crypto/chelsio/chtls/chtls_cm.c 	struct sock *newsk;
newsk            1041 drivers/crypto/chelsio/chtls/chtls_cm.c 	newsk = tcp_create_openreq_child(lsk, oreq, cdev->askb);
newsk            1042 drivers/crypto/chelsio/chtls/chtls_cm.c 	if (!newsk)
newsk            1045 drivers/crypto/chelsio/chtls/chtls_cm.c 	dst = inet_csk_route_child_sock(lsk, newsk, oreq);
newsk            1066 drivers/crypto/chelsio/chtls/chtls_cm.c 	newsk->sk_user_data = csk;
newsk            1067 drivers/crypto/chelsio/chtls/chtls_cm.c 	newsk->sk_backlog_rcv = chtls_backlog_rcv;
newsk            1069 drivers/crypto/chelsio/chtls/chtls_cm.c 	tp = tcp_sk(newsk);
newsk            1070 drivers/crypto/chelsio/chtls/chtls_cm.c 	newinet = inet_sk(newsk);
newsk            1077 drivers/crypto/chelsio/chtls/chtls_cm.c 	sk_setup_caps(newsk, dst);
newsk            1079 drivers/crypto/chelsio/chtls/chtls_cm.c 	newsk->sk_destruct = ctx->sk_destruct;
newsk            1080 drivers/crypto/chelsio/chtls/chtls_cm.c 	csk->sk = newsk;
newsk            1095 drivers/crypto/chelsio/chtls/chtls_cm.c 	csk->sndbuf = newsk->sk_sndbuf;
newsk            1097 drivers/crypto/chelsio/chtls/chtls_cm.c 	RCV_WSCALE(tp) = select_rcv_wscale(tcp_full_space(newsk),
newsk            1098 drivers/crypto/chelsio/chtls/chtls_cm.c 					   sock_net(newsk)->
newsk            1102 drivers/crypto/chelsio/chtls/chtls_cm.c 	inet_inherit_port(&tcp_hashinfo, lsk, newsk);
newsk            1104 drivers/crypto/chelsio/chtls/chtls_cm.c 	bh_unlock_sock(newsk); /* tcp_create_openreq_child ->sk_clone_lock */
newsk            1106 drivers/crypto/chelsio/chtls/chtls_cm.c 	return newsk;
newsk            1112 drivers/crypto/chelsio/chtls/chtls_cm.c 	inet_csk_prepare_forced_close(newsk);
newsk            1113 drivers/crypto/chelsio/chtls/chtls_cm.c 	tcp_done(newsk);
newsk            1157 drivers/crypto/chelsio/chtls/chtls_cm.c 	struct sock *newsk;
newsk            1172 drivers/crypto/chelsio/chtls/chtls_cm.c 	newsk = lookup_tid(cdev->tids, tid);
newsk            1174 drivers/crypto/chelsio/chtls/chtls_cm.c 	if (newsk) {
newsk            1241 drivers/crypto/chelsio/chtls/chtls_cm.c 	newsk = chtls_recv_sock(sk, oreq, network_hdr, req, cdev);
newsk            1242 drivers/crypto/chelsio/chtls/chtls_cm.c 	if (!newsk)
newsk            1245 drivers/crypto/chelsio/chtls/chtls_cm.c 	if (chtls_get_module(newsk))
newsk            1248 drivers/crypto/chelsio/chtls/chtls_cm.c 	reply_skb->sk = newsk;
newsk            1249 drivers/crypto/chelsio/chtls/chtls_cm.c 	chtls_install_cpl_ops(newsk);
newsk            1250 drivers/crypto/chelsio/chtls/chtls_cm.c 	cxgb4_insert_tid(cdev->tids, newsk, tid, newsk->sk_family);
newsk            1251 drivers/crypto/chelsio/chtls/chtls_cm.c 	csk = rcu_dereference_sk_user_data(newsk);
newsk            2833 drivers/net/usb/lan78xx.c 			      struct sk_buff *newsk, enum skb_state state)
newsk            2835 drivers/net/usb/lan78xx.c 	struct skb_data *entry = (struct skb_data *)newsk->cb;
newsk            2837 drivers/net/usb/lan78xx.c 	__skb_queue_tail(list, newsk);
newsk             409 drivers/net/usb/usbnet.c 			struct sk_buff *newsk, enum skb_state state)
newsk             411 drivers/net/usb/usbnet.c 	struct skb_data *entry = (struct skb_data *) newsk->cb;
newsk             413 drivers/net/usb/usbnet.c 	__skb_queue_tail(list, newsk);
newsk            1704 include/linux/lsm_hooks.h 					struct sock *newsk);
newsk            1734 include/linux/lsm_hooks.h 	void (*sk_clone_security)(const struct sock *sk, struct sock *newsk);
newsk            1739 include/linux/lsm_hooks.h 	void (*inet_csk_clone)(struct sock *newsk,
newsk            1758 include/linux/lsm_hooks.h 			      struct sock *newsk);
newsk            1279 include/linux/security.h int security_unix_stream_connect(struct sock *sock, struct sock *other, struct sock *newsk);
newsk            1303 include/linux/security.h void security_sk_clone(const struct sock *sk, struct sock *newsk);
newsk            1309 include/linux/security.h void security_inet_csk_clone(struct sock *newsk,
newsk            1326 include/linux/security.h 			    struct sock *newsk);
newsk            1331 include/linux/security.h 					       struct sock *newsk)
newsk            1452 include/linux/security.h static inline void security_sk_clone(const struct sock *sk, struct sock *newsk)
newsk            1474 include/linux/security.h static inline void security_inet_csk_clone(struct sock *newsk,
newsk            1541 include/linux/security.h 					  struct sock *newsk)
newsk            1862 include/linux/skbuff.h static inline void __skb_insert(struct sk_buff *newsk,
newsk            1869 include/linux/skbuff.h 	WRITE_ONCE(newsk->next, next);
newsk            1870 include/linux/skbuff.h 	WRITE_ONCE(newsk->prev, prev);
newsk            1871 include/linux/skbuff.h 	WRITE_ONCE(next->prev, newsk);
newsk            1872 include/linux/skbuff.h 	WRITE_ONCE(prev->next, newsk);
newsk            1966 include/linux/skbuff.h 				     struct sk_buff *newsk)
newsk            1968 include/linux/skbuff.h 	__skb_insert(newsk, prev, prev->next, list);
newsk            1971 include/linux/skbuff.h void skb_append(struct sk_buff *old, struct sk_buff *newsk,
newsk            1976 include/linux/skbuff.h 				      struct sk_buff *newsk)
newsk            1978 include/linux/skbuff.h 	__skb_insert(newsk, next->prev, next, list);
newsk            1992 include/linux/skbuff.h 				    struct sk_buff *newsk)
newsk            1994 include/linux/skbuff.h 	__skb_queue_after(list, (struct sk_buff *)list, newsk);
newsk            1996 include/linux/skbuff.h void skb_queue_head(struct sk_buff_head *list, struct sk_buff *newsk);
newsk            2009 include/linux/skbuff.h 				   struct sk_buff *newsk)
newsk            2011 include/linux/skbuff.h 	__skb_queue_before(list, (struct sk_buff *)list, newsk);
newsk            2013 include/linux/skbuff.h void skb_queue_tail(struct sk_buff_head *list, struct sk_buff *newsk);
newsk              14 include/net/bpf_sk_storage.h int bpf_sk_storage_clone(const struct sock *sk, struct sock *newsk);
newsk              17 include/net/bpf_sk_storage.h 				       struct sock *newsk)
newsk             260 include/net/inet_connection_sock.h 					    struct sock *newsk,
newsk             100 include/net/sctp/sctp.h void sctp_copy_sock(struct sock *newsk, struct sock *sk,
newsk             154 include/net/sctp/sctp.h 			  struct sock *oldsk, struct sock *newsk);
newsk             512 include/net/sctp/structs.h 	void (*copy_ip_options)(struct sock *sk, struct sock *newsk);
newsk            1334 net/ax25/af_ax25.c 	struct sock *newsk;
newsk            1384 net/ax25/af_ax25.c 	newsk		 = skb->sk;
newsk            1385 net/ax25/af_ax25.c 	sock_graft(newsk, newsock);
newsk             753 net/core/bpf_sk_storage.c bpf_sk_storage_clone_elem(struct sock *newsk,
newsk             759 net/core/bpf_sk_storage.c 	copy_selem = selem_alloc(smap, newsk, NULL, true);
newsk             773 net/core/bpf_sk_storage.c int bpf_sk_storage_clone(const struct sock *sk, struct sock *newsk)
newsk             780 net/core/bpf_sk_storage.c 	RCU_INIT_POINTER(newsk->sk_bpf_storage, NULL);
newsk             806 net/core/bpf_sk_storage.c 		copy_selem = bpf_sk_storage_clone_elem(newsk, smap, selem);
newsk             817 net/core/bpf_sk_storage.c 			ret = sk_storage_alloc(newsk, smap, copy_selem);
newsk             821 net/core/bpf_sk_storage.c 					   &newsk->sk_omem_alloc);
newsk            3119 net/core/skbuff.c void skb_queue_head(struct sk_buff_head *list, struct sk_buff *newsk)
newsk            3124 net/core/skbuff.c 	__skb_queue_head(list, newsk);
newsk            3140 net/core/skbuff.c void skb_queue_tail(struct sk_buff_head *list, struct sk_buff *newsk)
newsk            3145 net/core/skbuff.c 	__skb_queue_tail(list, newsk);
newsk            3180 net/core/skbuff.c void skb_append(struct sk_buff *old, struct sk_buff *newsk, struct sk_buff_head *list)
newsk            3185 net/core/skbuff.c 	__skb_queue_after(list, old, newsk);
newsk            1797 net/core/sock.c 	struct sock *newsk;
newsk            1800 net/core/sock.c 	newsk = sk_prot_alloc(sk->sk_prot, priority, sk->sk_family);
newsk            1801 net/core/sock.c 	if (newsk != NULL) {
newsk            1804 net/core/sock.c 		sock_copy(newsk, sk);
newsk            1806 net/core/sock.c 		newsk->sk_prot_creator = sk->sk_prot;
newsk            1809 net/core/sock.c 		if (likely(newsk->sk_net_refcnt))
newsk            1810 net/core/sock.c 			get_net(sock_net(newsk));
newsk            1811 net/core/sock.c 		sk_node_init(&newsk->sk_node);
newsk            1812 net/core/sock.c 		sock_lock_init(newsk);
newsk            1813 net/core/sock.c 		bh_lock_sock(newsk);
newsk            1814 net/core/sock.c 		newsk->sk_backlog.head	= newsk->sk_backlog.tail = NULL;
newsk            1815 net/core/sock.c 		newsk->sk_backlog.len = 0;
newsk            1817 net/core/sock.c 		atomic_set(&newsk->sk_rmem_alloc, 0);
newsk            1821 net/core/sock.c 		refcount_set(&newsk->sk_wmem_alloc, 1);
newsk            1822 net/core/sock.c 		atomic_set(&newsk->sk_omem_alloc, 0);
newsk            1823 net/core/sock.c 		sk_init_common(newsk);
newsk            1825 net/core/sock.c 		newsk->sk_dst_cache	= NULL;
newsk            1826 net/core/sock.c 		newsk->sk_dst_pending_confirm = 0;
newsk            1827 net/core/sock.c 		newsk->sk_wmem_queued	= 0;
newsk            1828 net/core/sock.c 		newsk->sk_forward_alloc = 0;
newsk            1829 net/core/sock.c 		atomic_set(&newsk->sk_drops, 0);
newsk            1830 net/core/sock.c 		newsk->sk_send_head	= NULL;
newsk            1831 net/core/sock.c 		newsk->sk_userlocks	= sk->sk_userlocks & ~SOCK_BINDPORT_LOCK;
newsk            1832 net/core/sock.c 		atomic_set(&newsk->sk_zckey, 0);
newsk            1834 net/core/sock.c 		sock_reset_flag(newsk, SOCK_DONE);
newsk            1837 net/core/sock.c 		newsk->sk_memcg = NULL;
newsk            1839 net/core/sock.c 		cgroup_sk_alloc(&newsk->sk_cgrp_data);
newsk            1848 net/core/sock.c 			is_charged = sk_filter_charge(newsk, filter);
newsk            1849 net/core/sock.c 		RCU_INIT_POINTER(newsk->sk_filter, filter);
newsk            1852 net/core/sock.c 		if (unlikely(!is_charged || xfrm_sk_clone_policy(newsk, sk))) {
newsk            1858 net/core/sock.c 				RCU_INIT_POINTER(newsk->sk_filter, NULL);
newsk            1859 net/core/sock.c 			sk_free_unlock_clone(newsk);
newsk            1860 net/core/sock.c 			newsk = NULL;
newsk            1863 net/core/sock.c 		RCU_INIT_POINTER(newsk->sk_reuseport_cb, NULL);
newsk            1865 net/core/sock.c 		if (bpf_sk_storage_clone(sk, newsk)) {
newsk            1866 net/core/sock.c 			sk_free_unlock_clone(newsk);
newsk            1867 net/core/sock.c 			newsk = NULL;
newsk            1871 net/core/sock.c 		newsk->sk_err	   = 0;
newsk            1872 net/core/sock.c 		newsk->sk_err_soft = 0;
newsk            1873 net/core/sock.c 		newsk->sk_priority = 0;
newsk            1874 net/core/sock.c 		newsk->sk_incoming_cpu = raw_smp_processor_id();
newsk            1875 net/core/sock.c 		if (likely(newsk->sk_net_refcnt))
newsk            1876 net/core/sock.c 			sock_inuse_add(sock_net(newsk), 1);
newsk            1883 net/core/sock.c 		refcount_set(&newsk->sk_refcnt, 2);
newsk            1896 net/core/sock.c 		sk_refcnt_debug_inc(newsk);
newsk            1897 net/core/sock.c 		sk_set_socket(newsk, NULL);
newsk            1898 net/core/sock.c 		RCU_INIT_POINTER(newsk->sk_wq, NULL);
newsk            1900 net/core/sock.c 		if (newsk->sk_prot->sockets_allocated)
newsk            1901 net/core/sock.c 			sk_sockets_allocated_inc(newsk);
newsk            1904 net/core/sock.c 		    newsk->sk_flags & SK_FLAGS_TIMESTAMP)
newsk            1908 net/core/sock.c 	return newsk;
newsk             402 net/dccp/ipv4.c 	struct sock *newsk;
newsk             407 net/dccp/ipv4.c 	newsk = dccp_create_openreq_child(sk, req, skb);
newsk             408 net/dccp/ipv4.c 	if (newsk == NULL)
newsk             411 net/dccp/ipv4.c 	newinet		   = inet_sk(newsk);
newsk             413 net/dccp/ipv4.c 	sk_daddr_set(newsk, ireq->ir_rmt_addr);
newsk             414 net/dccp/ipv4.c 	sk_rcv_saddr_set(newsk, ireq->ir_loc_addr);
newsk             421 net/dccp/ipv4.c 	if (dst == NULL && (dst = inet_csk_route_child_sock(sk, newsk, req)) == NULL)
newsk             424 net/dccp/ipv4.c 	sk_setup_caps(newsk, dst);
newsk             426 net/dccp/ipv4.c 	dccp_sync_mss(newsk, dst_mtu(dst));
newsk             428 net/dccp/ipv4.c 	if (__inet_inherit_port(sk, newsk) < 0)
newsk             430 net/dccp/ipv4.c 	*own_req = inet_ehash_nolisten(newsk, req_to_sk(req_unhash));
newsk             435 net/dccp/ipv4.c 	return newsk;
newsk             446 net/dccp/ipv4.c 	inet_csk_prepare_forced_close(newsk);
newsk             447 net/dccp/ipv4.c 	dccp_done(newsk);
newsk             409 net/dccp/ipv6.c 	struct sock *newsk;
newsk             415 net/dccp/ipv6.c 		newsk = dccp_v4_request_recv_sock(sk, skb, req, dst,
newsk             417 net/dccp/ipv6.c 		if (newsk == NULL)
newsk             420 net/dccp/ipv6.c 		newdp6 = (struct dccp6_sock *)newsk;
newsk             421 net/dccp/ipv6.c 		newinet = inet_sk(newsk);
newsk             423 net/dccp/ipv6.c 		newnp = inet6_sk(newsk);
newsk             427 net/dccp/ipv6.c 		newnp->saddr = newsk->sk_v6_rcv_saddr;
newsk             429 net/dccp/ipv6.c 		inet_csk(newsk)->icsk_af_ops = &dccp_ipv6_mapped;
newsk             430 net/dccp/ipv6.c 		newsk->sk_backlog_rcv = dccp_v4_do_rcv;
newsk             449 net/dccp/ipv6.c 		dccp_sync_mss(newsk, inet_csk(newsk)->icsk_pmtu_cookie);
newsk             451 net/dccp/ipv6.c 		return newsk;
newsk             466 net/dccp/ipv6.c 	newsk = dccp_create_openreq_child(sk, req, skb);
newsk             467 net/dccp/ipv6.c 	if (newsk == NULL)
newsk             476 net/dccp/ipv6.c 	ip6_dst_store(newsk, dst, NULL, NULL);
newsk             477 net/dccp/ipv6.c 	newsk->sk_route_caps = dst->dev->features & ~(NETIF_F_IP_CSUM |
newsk             479 net/dccp/ipv6.c 	newdp6 = (struct dccp6_sock *)newsk;
newsk             480 net/dccp/ipv6.c 	newinet = inet_sk(newsk);
newsk             482 net/dccp/ipv6.c 	newnp = inet6_sk(newsk);
newsk             486 net/dccp/ipv6.c 	newsk->sk_v6_daddr	= ireq->ir_v6_rmt_addr;
newsk             488 net/dccp/ipv6.c 	newsk->sk_v6_rcv_saddr	= ireq->ir_v6_loc_addr;
newsk             489 net/dccp/ipv6.c 	newsk->sk_bound_dev_if	= ireq->ir_iif;
newsk             518 net/dccp/ipv6.c 		opt = ipv6_dup_options(newsk, opt);
newsk             521 net/dccp/ipv6.c 	inet_csk(newsk)->icsk_ext_hdr_len = 0;
newsk             523 net/dccp/ipv6.c 		inet_csk(newsk)->icsk_ext_hdr_len = opt->opt_nflen +
newsk             526 net/dccp/ipv6.c 	dccp_sync_mss(newsk, dst_mtu(dst));
newsk             531 net/dccp/ipv6.c 	if (__inet_inherit_port(sk, newsk) < 0) {
newsk             532 net/dccp/ipv6.c 		inet_csk_prepare_forced_close(newsk);
newsk             533 net/dccp/ipv6.c 		dccp_done(newsk);
newsk             536 net/dccp/ipv6.c 	*own_req = inet_ehash_nolisten(newsk, req_to_sk(req_unhash));
newsk             543 net/dccp/ipv6.c 			skb_set_owner_r(newnp->pktoptions, newsk);
newsk             546 net/dccp/ipv6.c 	return newsk;
newsk              87 net/dccp/minisocks.c 	struct sock *newsk = inet_csk_clone_lock(sk, req, GFP_ATOMIC);
newsk              89 net/dccp/minisocks.c 	if (newsk != NULL) {
newsk              91 net/dccp/minisocks.c 		struct inet_connection_sock *newicsk = inet_csk(newsk);
newsk              92 net/dccp/minisocks.c 		struct dccp_sock *newdp = dccp_sk(newsk);
newsk             123 net/dccp/minisocks.c 		if (dccp_feat_activate_values(newsk, &dreq->dreq_featneg)) {
newsk             124 net/dccp/minisocks.c 			sk_free_unlock_clone(newsk);
newsk             127 net/dccp/minisocks.c 		dccp_init_xmit_timers(newsk);
newsk             131 net/dccp/minisocks.c 	return newsk;
newsk            1068 net/decnet/af_decnet.c 	struct sock *sk = sock->sk, *newsk;
newsk            1095 net/decnet/af_decnet.c 	newsk = dn_alloc_sock(sock_net(sk), newsock, sk->sk_allocation, kern);
newsk            1096 net/decnet/af_decnet.c 	if (newsk == NULL) {
newsk            1104 net/decnet/af_decnet.c 	sk_dst_set(newsk, dst);
newsk            1107 net/decnet/af_decnet.c 	DN_SK(newsk)->state        = DN_CR;
newsk            1108 net/decnet/af_decnet.c 	DN_SK(newsk)->addrrem      = cb->src_port;
newsk            1109 net/decnet/af_decnet.c 	DN_SK(newsk)->services_rem = cb->services;
newsk            1110 net/decnet/af_decnet.c 	DN_SK(newsk)->info_rem     = cb->info;
newsk            1111 net/decnet/af_decnet.c 	DN_SK(newsk)->segsize_rem  = cb->segsize;
newsk            1112 net/decnet/af_decnet.c 	DN_SK(newsk)->accept_mode  = DN_SK(sk)->accept_mode;
newsk            1114 net/decnet/af_decnet.c 	if (DN_SK(newsk)->segsize_rem < 230)
newsk            1115 net/decnet/af_decnet.c 		DN_SK(newsk)->segsize_rem = 230;
newsk            1117 net/decnet/af_decnet.c 	if ((DN_SK(newsk)->services_rem & NSP_FC_MASK) == NSP_FC_NONE)
newsk            1118 net/decnet/af_decnet.c 		DN_SK(newsk)->max_window = decnet_no_fc_max_cwnd;
newsk            1120 net/decnet/af_decnet.c 	newsk->sk_state  = TCP_LISTEN;
newsk            1121 net/decnet/af_decnet.c 	memcpy(&(DN_SK(newsk)->addr), &(DN_SK(sk)->addr), sizeof(struct sockaddr_dn));
newsk            1127 net/decnet/af_decnet.c 	DN_SK(newsk)->addr.sdn_flags &= ~SDF_WILD;
newsk            1129 net/decnet/af_decnet.c 	skb_pull(skb, dn_username2sockaddr(skb->data, skb->len, &(DN_SK(newsk)->addr), &type));
newsk            1130 net/decnet/af_decnet.c 	skb_pull(skb, dn_username2sockaddr(skb->data, skb->len, &(DN_SK(newsk)->peer), &type));
newsk            1131 net/decnet/af_decnet.c 	*(__le16 *)(DN_SK(newsk)->peer.sdn_add.a_addr) = cb->src;
newsk            1132 net/decnet/af_decnet.c 	*(__le16 *)(DN_SK(newsk)->addr.sdn_add.a_addr) = cb->dst;
newsk            1138 net/decnet/af_decnet.c 		dn_access_copy(skb, &(DN_SK(newsk)->accessdata));
newsk            1141 net/decnet/af_decnet.c 		dn_user_copy(skb, &(DN_SK(newsk)->conndata_in));
newsk            1144 net/decnet/af_decnet.c 		DN_SK(newsk)->peer.sdn_flags |= SDF_PROXY;
newsk            1147 net/decnet/af_decnet.c 		DN_SK(newsk)->peer.sdn_flags |= SDF_UICPROXY;
newsk            1151 net/decnet/af_decnet.c 	memcpy(&(DN_SK(newsk)->conndata_out), &(DN_SK(sk)->conndata_out),
newsk            1153 net/decnet/af_decnet.c 	memcpy(&(DN_SK(newsk)->discdata_out), &(DN_SK(sk)->discdata_out),
newsk            1156 net/decnet/af_decnet.c 	lock_sock(newsk);
newsk            1157 net/decnet/af_decnet.c 	err = dn_hash_sock(newsk);
newsk            1159 net/decnet/af_decnet.c 		sock_reset_flag(newsk, SOCK_ZAPPED);
newsk            1160 net/decnet/af_decnet.c 		dn_send_conn_ack(newsk);
newsk            1166 net/decnet/af_decnet.c 		if (DN_SK(newsk)->accept_mode == ACC_IMMED)
newsk            1167 net/decnet/af_decnet.c 			err = dn_confirm_accept(newsk, &timeo,
newsk            1170 net/decnet/af_decnet.c 	release_sock(newsk);
newsk             447 net/ipv4/inet_connection_sock.c 	struct sock *newsk;
newsk             473 net/ipv4/inet_connection_sock.c 	newsk = req->sk;
newsk             493 net/ipv4/inet_connection_sock.c 	if (newsk && mem_cgroup_sockets_enabled) {
newsk             499 net/ipv4/inet_connection_sock.c 		lock_sock(newsk);
newsk             504 net/ipv4/inet_connection_sock.c 		amt = sk_mem_pages(newsk->sk_forward_alloc +
newsk             505 net/ipv4/inet_connection_sock.c 				   atomic_read(&newsk->sk_rmem_alloc));
newsk             506 net/ipv4/inet_connection_sock.c 		mem_cgroup_sk_alloc(newsk);
newsk             507 net/ipv4/inet_connection_sock.c 		if (newsk->sk_memcg && amt)
newsk             508 net/ipv4/inet_connection_sock.c 			mem_cgroup_charge_skmem(newsk->sk_memcg, amt);
newsk             510 net/ipv4/inet_connection_sock.c 		release_sock(newsk);
newsk             514 net/ipv4/inet_connection_sock.c 	return newsk;
newsk             516 net/ipv4/inet_connection_sock.c 	newsk = NULL;
newsk             603 net/ipv4/inet_connection_sock.c 					    struct sock *newsk,
newsk             608 net/ipv4/inet_connection_sock.c 	struct inet_sock *newinet = inet_sk(newsk);
newsk             810 net/ipv4/inet_connection_sock.c 	struct sock *newsk = sk_clone_lock(sk, priority);
newsk             812 net/ipv4/inet_connection_sock.c 	if (newsk) {
newsk             813 net/ipv4/inet_connection_sock.c 		struct inet_connection_sock *newicsk = inet_csk(newsk);
newsk             815 net/ipv4/inet_connection_sock.c 		inet_sk_set_state(newsk, TCP_SYN_RECV);
newsk             818 net/ipv4/inet_connection_sock.c 		inet_sk(newsk)->inet_dport = inet_rsk(req)->ir_rmt_port;
newsk             819 net/ipv4/inet_connection_sock.c 		inet_sk(newsk)->inet_num = inet_rsk(req)->ir_num;
newsk             820 net/ipv4/inet_connection_sock.c 		inet_sk(newsk)->inet_sport = htons(inet_rsk(req)->ir_num);
newsk             823 net/ipv4/inet_connection_sock.c 		sock_reset_flag(newsk, SOCK_RCU_FREE);
newsk             825 net/ipv4/inet_connection_sock.c 		inet_sk(newsk)->mc_list = NULL;
newsk             827 net/ipv4/inet_connection_sock.c 		newsk->sk_mark = inet_rsk(req)->ir_mark;
newsk             828 net/ipv4/inet_connection_sock.c 		atomic64_set(&newsk->sk_cookie,
newsk             838 net/ipv4/inet_connection_sock.c 		security_inet_csk_clone(newsk, req);
newsk             840 net/ipv4/inet_connection_sock.c 	return newsk;
newsk            1422 net/ipv4/tcp_ipv4.c 	struct sock *newsk;
newsk            1431 net/ipv4/tcp_ipv4.c 	newsk = tcp_create_openreq_child(sk, req, skb);
newsk            1432 net/ipv4/tcp_ipv4.c 	if (!newsk)
newsk            1435 net/ipv4/tcp_ipv4.c 	newsk->sk_gso_type = SKB_GSO_TCPV4;
newsk            1436 net/ipv4/tcp_ipv4.c 	inet_sk_rx_dst_set(newsk, skb);
newsk            1438 net/ipv4/tcp_ipv4.c 	newtp		      = tcp_sk(newsk);
newsk            1439 net/ipv4/tcp_ipv4.c 	newinet		      = inet_sk(newsk);
newsk            1441 net/ipv4/tcp_ipv4.c 	sk_daddr_set(newsk, ireq->ir_rmt_addr);
newsk            1442 net/ipv4/tcp_ipv4.c 	sk_rcv_saddr_set(newsk, ireq->ir_loc_addr);
newsk            1443 net/ipv4/tcp_ipv4.c 	newsk->sk_bound_dev_if = ireq->ir_iif;
newsk            1450 net/ipv4/tcp_ipv4.c 	inet_csk(newsk)->icsk_ext_hdr_len = 0;
newsk            1452 net/ipv4/tcp_ipv4.c 		inet_csk(newsk)->icsk_ext_hdr_len = inet_opt->opt.optlen;
newsk            1456 net/ipv4/tcp_ipv4.c 		dst = inet_csk_route_child_sock(sk, newsk, req);
newsk            1462 net/ipv4/tcp_ipv4.c 	sk_setup_caps(newsk, dst);
newsk            1464 net/ipv4/tcp_ipv4.c 	tcp_ca_openreq_child(newsk, dst);
newsk            1466 net/ipv4/tcp_ipv4.c 	tcp_sync_mss(newsk, dst_mtu(dst));
newsk            1469 net/ipv4/tcp_ipv4.c 	tcp_initialize_rcv_mss(newsk);
newsk            1482 net/ipv4/tcp_ipv4.c 		tcp_md5_do_add(newsk, (union tcp_md5_addr *)&newinet->inet_daddr,
newsk            1484 net/ipv4/tcp_ipv4.c 		sk_nocaps_add(newsk, NETIF_F_GSO_MASK);
newsk            1488 net/ipv4/tcp_ipv4.c 	if (__inet_inherit_port(sk, newsk) < 0)
newsk            1490 net/ipv4/tcp_ipv4.c 	*own_req = inet_ehash_nolisten(newsk, req_to_sk(req_unhash));
newsk            1497 net/ipv4/tcp_ipv4.c 	return newsk;
newsk            1508 net/ipv4/tcp_ipv4.c 	inet_csk_prepare_forced_close(newsk);
newsk            1509 net/ipv4/tcp_ipv4.c 	tcp_done(newsk);
newsk             460 net/ipv4/tcp_minisocks.c 	struct sock *newsk = inet_csk_clone_lock(sk, req, GFP_ATOMIC);
newsk             467 net/ipv4/tcp_minisocks.c 	if (!newsk)
newsk             470 net/ipv4/tcp_minisocks.c 	newicsk = inet_csk(newsk);
newsk             471 net/ipv4/tcp_minisocks.c 	newtp = tcp_sk(newsk);
newsk             499 net/ipv4/tcp_minisocks.c 	newsk->sk_txhash = treq->txhash;
newsk             502 net/ipv4/tcp_minisocks.c 	tcp_init_xmit_timers(newsk);
newsk             505 net/ipv4/tcp_minisocks.c 	if (sock_flag(newsk, SOCK_KEEPOPEN))
newsk             506 net/ipv4/tcp_minisocks.c 		inet_csk_reset_keepalive_timer(newsk,
newsk             541 net/ipv4/tcp_minisocks.c 	if (newtp->af_specific->md5_lookup(sk, newsk))
newsk             553 net/ipv4/tcp_minisocks.c 	return newsk;
newsk            1126 net/ipv6/tcp_ipv6.c 	struct sock *newsk;
newsk            1137 net/ipv6/tcp_ipv6.c 		newsk = tcp_v4_syn_recv_sock(sk, skb, req, dst,
newsk            1140 net/ipv6/tcp_ipv6.c 		if (!newsk)
newsk            1143 net/ipv6/tcp_ipv6.c 		inet_sk(newsk)->pinet6 = tcp_inet6_sk(newsk);
newsk            1145 net/ipv6/tcp_ipv6.c 		newinet = inet_sk(newsk);
newsk            1146 net/ipv6/tcp_ipv6.c 		newnp = tcp_inet6_sk(newsk);
newsk            1147 net/ipv6/tcp_ipv6.c 		newtp = tcp_sk(newsk);
newsk            1151 net/ipv6/tcp_ipv6.c 		newnp->saddr = newsk->sk_v6_rcv_saddr;
newsk            1153 net/ipv6/tcp_ipv6.c 		inet_csk(newsk)->icsk_af_ops = &ipv6_mapped;
newsk            1154 net/ipv6/tcp_ipv6.c 		newsk->sk_backlog_rcv = tcp_v4_do_rcv;
newsk            1180 net/ipv6/tcp_ipv6.c 		tcp_sync_mss(newsk, inet_csk(newsk)->icsk_pmtu_cookie);
newsk            1182 net/ipv6/tcp_ipv6.c 		return newsk;
newsk            1196 net/ipv6/tcp_ipv6.c 	newsk = tcp_create_openreq_child(sk, req, skb);
newsk            1197 net/ipv6/tcp_ipv6.c 	if (!newsk)
newsk            1206 net/ipv6/tcp_ipv6.c 	newsk->sk_gso_type = SKB_GSO_TCPV6;
newsk            1207 net/ipv6/tcp_ipv6.c 	ip6_dst_store(newsk, dst, NULL, NULL);
newsk            1208 net/ipv6/tcp_ipv6.c 	inet6_sk_rx_dst_set(newsk, skb);
newsk            1210 net/ipv6/tcp_ipv6.c 	inet_sk(newsk)->pinet6 = tcp_inet6_sk(newsk);
newsk            1212 net/ipv6/tcp_ipv6.c 	newtp = tcp_sk(newsk);
newsk            1213 net/ipv6/tcp_ipv6.c 	newinet = inet_sk(newsk);
newsk            1214 net/ipv6/tcp_ipv6.c 	newnp = tcp_inet6_sk(newsk);
newsk            1218 net/ipv6/tcp_ipv6.c 	newsk->sk_v6_daddr = ireq->ir_v6_rmt_addr;
newsk            1220 net/ipv6/tcp_ipv6.c 	newsk->sk_v6_rcv_saddr = ireq->ir_v6_loc_addr;
newsk            1221 net/ipv6/tcp_ipv6.c 	newsk->sk_bound_dev_if = ireq->ir_iif;
newsk            1253 net/ipv6/tcp_ipv6.c 		opt = ipv6_dup_options(newsk, opt);
newsk            1256 net/ipv6/tcp_ipv6.c 	inet_csk(newsk)->icsk_ext_hdr_len = 0;
newsk            1258 net/ipv6/tcp_ipv6.c 		inet_csk(newsk)->icsk_ext_hdr_len = opt->opt_nflen +
newsk            1261 net/ipv6/tcp_ipv6.c 	tcp_ca_openreq_child(newsk, dst);
newsk            1263 net/ipv6/tcp_ipv6.c 	tcp_sync_mss(newsk, dst_mtu(dst));
newsk            1266 net/ipv6/tcp_ipv6.c 	tcp_initialize_rcv_mss(newsk);
newsk            1273 net/ipv6/tcp_ipv6.c 	key = tcp_v6_md5_do_lookup(sk, &newsk->sk_v6_daddr);
newsk            1280 net/ipv6/tcp_ipv6.c 		tcp_md5_do_add(newsk, (union tcp_md5_addr *)&newsk->sk_v6_daddr,
newsk            1286 net/ipv6/tcp_ipv6.c 	if (__inet_inherit_port(sk, newsk) < 0) {
newsk            1287 net/ipv6/tcp_ipv6.c 		inet_csk_prepare_forced_close(newsk);
newsk            1288 net/ipv6/tcp_ipv6.c 		tcp_done(newsk);
newsk            1291 net/ipv6/tcp_ipv6.c 	*own_req = inet_ehash_nolisten(newsk, req_to_sk(req_unhash));
newsk            1303 net/ipv6/tcp_ipv6.c 				skb_set_owner_r(newnp->pktoptions, newsk);
newsk            1308 net/ipv6/tcp_ipv6.c 	return newsk;
newsk            1663 net/kcm/kcmsock.c 	struct sock *newsk;
newsk            1674 net/kcm/kcmsock.c 	newsk = sk_alloc(sock_net(osock->sk), PF_KCM, GFP_KERNEL,
newsk            1676 net/kcm/kcmsock.c 	if (!newsk) {
newsk            1680 net/kcm/kcmsock.c 	sock_init_data(newsock, newsk);
newsk            1681 net/kcm/kcmsock.c 	init_kcm_sock(kcm_sk(newsk), kcm_sk(osock->sk)->mux);
newsk             668 net/llc/af_llc.c 	struct sock *sk = sock->sk, *newsk;
newsk             695 net/llc/af_llc.c 	newsk = skb->sk;
newsk             697 net/llc/af_llc.c 	llc_ui_sk_init(newsock, newsk);
newsk             698 net/llc/af_llc.c 	sock_reset_flag(newsk, SOCK_ZAPPED);
newsk             699 net/llc/af_llc.c 	newsk->sk_state		= TCP_ESTABLISHED;
newsk             702 net/llc/af_llc.c 	newllc			= llc_sk(newsk);
newsk             752 net/llc/llc_conn.c 	struct sock *newsk = llc_sk_alloc(sock_net(sk), sk->sk_family, GFP_ATOMIC,
newsk             756 net/llc/llc_conn.c 	if (!newsk)
newsk             758 net/llc/llc_conn.c 	newllc = llc_sk(newsk);
newsk             763 net/llc/llc_conn.c 	llc_sap_add_socket(llc->sap, newsk);
newsk             766 net/llc/llc_conn.c 	return newsk;
newsk             793 net/llc/llc_conn.c 		struct sock *newsk = llc_create_incoming_sock(sk, skb->dev,
newsk             795 net/llc/llc_conn.c 		if (!newsk)
newsk             797 net/llc/llc_conn.c 		skb_set_owner_r(skb, newsk);
newsk             747 net/netrom/af_netrom.c 	struct sock *newsk;
newsk             793 net/netrom/af_netrom.c 	newsk = skb->sk;
newsk             794 net/netrom/af_netrom.c 	sock_graft(newsk, newsock);
newsk             766 net/phonet/pep.c 	struct sock *newsk = NULL;
newsk             828 net/phonet/pep.c 	newsk = pep_find_pipe(&pn->hlist, &dst, pipe_handle);
newsk             829 net/phonet/pep.c 	if (unlikely(newsk)) {
newsk             830 net/phonet/pep.c 		__sock_put(newsk);
newsk             831 net/phonet/pep.c 		newsk = NULL;
newsk             837 net/phonet/pep.c 	newsk = sk_alloc(sock_net(sk), PF_PHONET, GFP_KERNEL, sk->sk_prot,
newsk             839 net/phonet/pep.c 	if (!newsk) {
newsk             845 net/phonet/pep.c 	sock_init_data(NULL, newsk);
newsk             846 net/phonet/pep.c 	newsk->sk_state = TCP_SYN_RECV;
newsk             847 net/phonet/pep.c 	newsk->sk_backlog_rcv = pipe_do_rcv;
newsk             848 net/phonet/pep.c 	newsk->sk_protocol = sk->sk_protocol;
newsk             849 net/phonet/pep.c 	newsk->sk_destruct = pipe_destruct;
newsk             851 net/phonet/pep.c 	newpn = pep_sk(newsk);
newsk             869 net/phonet/pep.c 	err = pep_accept_conn(newsk, skb);
newsk             871 net/phonet/pep.c 		sock_put(newsk);
newsk             872 net/phonet/pep.c 		newsk = NULL;
newsk             875 net/phonet/pep.c 	sk_add_node(newsk, &pn->hlist);
newsk             880 net/phonet/pep.c 	return newsk;
newsk             298 net/phonet/socket.c 	struct sock *newsk;
newsk             304 net/phonet/socket.c 	newsk = sk->sk_prot->accept(sk, flags, &err, kern);
newsk             305 net/phonet/socket.c 	if (!newsk)
newsk             308 net/phonet/socket.c 	lock_sock(newsk);
newsk             309 net/phonet/socket.c 	sock_graft(newsk, newsock);
newsk             311 net/phonet/socket.c 	release_sock(newsk);
newsk             856 net/rose/af_rose.c 	struct sock *newsk;
newsk             903 net/rose/af_rose.c 	newsk = skb->sk;
newsk             904 net/rose/af_rose.c 	sock_graft(newsk, newsock);
newsk            1069 net/sctp/associola.c void sctp_assoc_migrate(struct sctp_association *assoc, struct sock *newsk)
newsk            1071 net/sctp/associola.c 	struct sctp_sock *newsp = sctp_sk(newsk);
newsk            1092 net/sctp/associola.c 	assoc->base.sk = newsk;
newsk             442 net/sctp/ipv6.c static void sctp_v6_copy_ip_options(struct sock *sk, struct sock *newsk)
newsk             447 net/sctp/ipv6.c 	newnp = inet6_sk(newsk);
newsk             452 net/sctp/ipv6.c 		opt = ipv6_dup_options(newsk, opt);
newsk             715 net/sctp/ipv6.c 	struct sock *newsk;
newsk             719 net/sctp/ipv6.c 	newsk = sk_alloc(sock_net(sk), PF_INET6, GFP_KERNEL, sk->sk_prot, kern);
newsk             720 net/sctp/ipv6.c 	if (!newsk)
newsk             723 net/sctp/ipv6.c 	sock_init_data(NULL, newsk);
newsk             725 net/sctp/ipv6.c 	sctp_copy_sock(newsk, sk, asoc);
newsk             728 net/sctp/ipv6.c 	newsctp6sk = (struct sctp6_sock *)newsk;
newsk             729 net/sctp/ipv6.c 	inet_sk(newsk)->pinet6 = &newsctp6sk->inet6;
newsk             731 net/sctp/ipv6.c 	sctp_sk(newsk)->v4mapped = sctp_sk(sk)->v4mapped;
newsk             733 net/sctp/ipv6.c 	newnp = inet6_sk(newsk);
newsk             740 net/sctp/ipv6.c 	sctp_v6_copy_ip_options(sk, newsk);
newsk             745 net/sctp/ipv6.c 	sctp_v6_to_sk_daddr(&asoc->peer.primary_addr, newsk);
newsk             747 net/sctp/ipv6.c 	newsk->sk_v6_rcv_saddr = sk->sk_v6_rcv_saddr;
newsk             749 net/sctp/ipv6.c 	sk_refcnt_debug_inc(newsk);
newsk             751 net/sctp/ipv6.c 	if (newsk->sk_prot->init(newsk)) {
newsk             752 net/sctp/ipv6.c 		sk_common_release(newsk);
newsk             753 net/sctp/ipv6.c 		newsk = NULL;
newsk             757 net/sctp/ipv6.c 	return newsk;
newsk             175 net/sctp/protocol.c static void sctp_v4_copy_ip_options(struct sock *sk, struct sock *newsk)
newsk             180 net/sctp/protocol.c 	newinet = inet_sk(newsk);
newsk             185 net/sctp/protocol.c 		newopt = sock_kmalloc(newsk, sizeof(*inet_opt) +
newsk             571 net/sctp/protocol.c 	struct sock *newsk = sk_alloc(sock_net(sk), PF_INET, GFP_KERNEL,
newsk             575 net/sctp/protocol.c 	if (!newsk)
newsk             578 net/sctp/protocol.c 	sock_init_data(NULL, newsk);
newsk             580 net/sctp/protocol.c 	sctp_copy_sock(newsk, sk, asoc);
newsk             581 net/sctp/protocol.c 	sock_reset_flag(newsk, SOCK_ZAPPED);
newsk             583 net/sctp/protocol.c 	sctp_v4_copy_ip_options(sk, newsk);
newsk             585 net/sctp/protocol.c 	newinet = inet_sk(newsk);
newsk             589 net/sctp/protocol.c 	sk_refcnt_debug_inc(newsk);
newsk             591 net/sctp/protocol.c 	if (newsk->sk_prot->init(newsk)) {
newsk             592 net/sctp/protocol.c 		sk_common_release(newsk);
newsk             593 net/sctp/protocol.c 		newsk = NULL;
newsk             597 net/sctp/protocol.c 	return newsk;
newsk              90 net/sctp/socket.c static int sctp_sock_migrate(struct sock *oldsk, struct sock *newsk,
newsk            4891 net/sctp/socket.c 	struct sock *newsk = NULL;
newsk            4922 net/sctp/socket.c 	newsk = sp->pf->create_accept_sk(sk, asoc, kern);
newsk            4923 net/sctp/socket.c 	if (!newsk) {
newsk            4931 net/sctp/socket.c 	error = sctp_sock_migrate(sk, newsk, asoc, SCTP_SOCKET_TCP);
newsk            4933 net/sctp/socket.c 		sk_common_release(newsk);
newsk            4934 net/sctp/socket.c 		newsk = NULL;
newsk            4940 net/sctp/socket.c 	return newsk;
newsk            9285 net/sctp/socket.c void sctp_copy_sock(struct sock *newsk, struct sock *sk,
newsk            9293 net/sctp/socket.c 	newsk->sk_type = sk->sk_type;
newsk            9294 net/sctp/socket.c 	newsk->sk_bound_dev_if = sk->sk_bound_dev_if;
newsk            9295 net/sctp/socket.c 	newsk->sk_flags = sk->sk_flags;
newsk            9296 net/sctp/socket.c 	newsk->sk_tsflags = sk->sk_tsflags;
newsk            9297 net/sctp/socket.c 	newsk->sk_no_check_tx = sk->sk_no_check_tx;
newsk            9298 net/sctp/socket.c 	newsk->sk_no_check_rx = sk->sk_no_check_rx;
newsk            9299 net/sctp/socket.c 	newsk->sk_reuse = sk->sk_reuse;
newsk            9300 net/sctp/socket.c 	sctp_sk(newsk)->reuse = sp->reuse;
newsk            9302 net/sctp/socket.c 	newsk->sk_shutdown = sk->sk_shutdown;
newsk            9303 net/sctp/socket.c 	newsk->sk_destruct = sctp_destruct_sock;
newsk            9304 net/sctp/socket.c 	newsk->sk_family = sk->sk_family;
newsk            9305 net/sctp/socket.c 	newsk->sk_protocol = IPPROTO_SCTP;
newsk            9306 net/sctp/socket.c 	newsk->sk_backlog_rcv = sk->sk_prot->backlog_rcv;
newsk            9307 net/sctp/socket.c 	newsk->sk_sndbuf = sk->sk_sndbuf;
newsk            9308 net/sctp/socket.c 	newsk->sk_rcvbuf = sk->sk_rcvbuf;
newsk            9309 net/sctp/socket.c 	newsk->sk_lingertime = sk->sk_lingertime;
newsk            9310 net/sctp/socket.c 	newsk->sk_rcvtimeo = sk->sk_rcvtimeo;
newsk            9311 net/sctp/socket.c 	newsk->sk_sndtimeo = sk->sk_sndtimeo;
newsk            9312 net/sctp/socket.c 	newsk->sk_rxhash = sk->sk_rxhash;
newsk            9314 net/sctp/socket.c 	newinet = inet_sk(newsk);
newsk            9332 net/sctp/socket.c 	if (newsk->sk_flags & SK_FLAGS_TIMESTAMP)
newsk            9338 net/sctp/socket.c 	security_sctp_sk_clone(ep, sk, newsk);
newsk            9357 net/sctp/socket.c static int sctp_sock_migrate(struct sock *oldsk, struct sock *newsk,
newsk            9362 net/sctp/socket.c 	struct sctp_sock *newsp = sctp_sk(newsk);
newsk            9373 net/sctp/socket.c 	newsk->sk_sndbuf = oldsk->sk_sndbuf;
newsk            9374 net/sctp/socket.c 	newsk->sk_rcvbuf = oldsk->sk_rcvbuf;
newsk            9376 net/sctp/socket.c 	sctp_copy_descendant(newsk, oldsk);
newsk            9389 net/sctp/socket.c 	sk_add_bind_node(newsk, &pp->owner);
newsk            9390 net/sctp/socket.c 	sctp_sk(newsk)->bind_hash = pp;
newsk            9391 net/sctp/socket.c 	inet_sk(newsk)->inet_num = inet_sk(oldsk)->inet_num;
newsk            9419 net/sctp/socket.c 			__skb_queue_tail(&newsk->sk_receive_queue, skb);
newsk            9420 net/sctp/socket.c 			sctp_skb_set_owner_r_frag(skb, newsk);
newsk            9430 net/sctp/socket.c 	atomic_set(&sctp_sk(newsk)->pd_mode, assoc->ulpq.pd_mode);
newsk            9439 net/sctp/socket.c 			queue = &newsk->sk_receive_queue;
newsk            9449 net/sctp/socket.c 				sctp_skb_set_owner_r_frag(skb, newsk);
newsk            9461 net/sctp/socket.c 	sctp_for_each_rx_skb(assoc, newsk, sctp_skb_set_owner_r_frag);
newsk            9478 net/sctp/socket.c 	lock_sock_nested(newsk, SINGLE_DEPTH_NESTING);
newsk            9480 net/sctp/socket.c 	sctp_assoc_migrate(assoc, newsk);
newsk            9486 net/sctp/socket.c 	if (sctp_state(assoc, CLOSED) && sctp_style(newsk, TCP)) {
newsk            9487 net/sctp/socket.c 		inet_sk_set_state(newsk, SCTP_SS_CLOSED);
newsk            9488 net/sctp/socket.c 		newsk->sk_shutdown |= RCV_SHUTDOWN;
newsk            9490 net/sctp/socket.c 		inet_sk_set_state(newsk, SCTP_SS_ESTABLISHED);
newsk            9493 net/sctp/socket.c 	release_sock(newsk);
newsk             454 net/tipc/topsrv.c 	struct sock *newsk;
newsk             468 net/tipc/topsrv.c 		newsk = newsock->sk;
newsk             469 net/tipc/topsrv.c 		write_lock_bh(&newsk->sk_callback_lock);
newsk             470 net/tipc/topsrv.c 		newsk->sk_data_ready = tipc_conn_data_ready;
newsk             471 net/tipc/topsrv.c 		newsk->sk_write_space = tipc_conn_write_space;
newsk             472 net/tipc/topsrv.c 		newsk->sk_user_data = con;
newsk             474 net/tipc/topsrv.c 		write_unlock_bh(&newsk->sk_callback_lock);
newsk             477 net/tipc/topsrv.c 		newsk->sk_data_ready(newsk);
newsk            1219 net/unix/af_unix.c 	struct sock *newsk = NULL;
newsk            1246 net/unix/af_unix.c 	newsk = unix_create1(sock_net(sk), NULL, 0);
newsk            1247 net/unix/af_unix.c 	if (newsk == NULL)
newsk            1251 net/unix/af_unix.c 	skb = sock_wmalloc(newsk, 1, 0, GFP_KERNEL);
newsk            1326 net/unix/af_unix.c 	err = security_unix_stream_connect(sk, other, newsk);
newsk            1335 net/unix/af_unix.c 	unix_peer(newsk)	= sk;
newsk            1336 net/unix/af_unix.c 	newsk->sk_state		= TCP_ESTABLISHED;
newsk            1337 net/unix/af_unix.c 	newsk->sk_type		= sk->sk_type;
newsk            1338 net/unix/af_unix.c 	init_peercred(newsk);
newsk            1339 net/unix/af_unix.c 	newu = unix_sk(newsk);
newsk            1340 net/unix/af_unix.c 	RCU_INIT_POINTER(newsk->sk_wq, &newu->peer_wq);
newsk            1372 net/unix/af_unix.c 	sock_hold(newsk);
newsk            1375 net/unix/af_unix.c 	unix_peer(sk)	= newsk;
newsk            1394 net/unix/af_unix.c 	if (newsk)
newsk            1395 net/unix/af_unix.c 		unix_release_sock(newsk, 0);
newsk             869 net/x25/af_x25.c 	struct sock *newsk;
newsk             892 net/x25/af_x25.c 	newsk		 = skb->sk;
newsk             893 net/x25/af_x25.c 	sock_graft(newsk, newsock);
newsk             789 security/apparmor/lsm.c 				       struct sock *newsk)
newsk             792 security/apparmor/lsm.c 	struct aa_sk_ctx *new = SK_CTX(newsk);
newsk            1961 security/security.c int security_unix_stream_connect(struct sock *sock, struct sock *other, struct sock *newsk)
newsk            1963 security/security.c 	return call_int_hook(unix_stream_connect, 0, sock, other, newsk);
newsk            2077 security/security.c void security_sk_clone(const struct sock *sk, struct sock *newsk)
newsk            2079 security/security.c 	call_void_hook(sk_clone_security, sk, newsk);
newsk            2108 security/security.c void security_inet_csk_clone(struct sock *newsk,
newsk            2111 security/security.c 	call_void_hook(inet_csk_clone, newsk, req);
newsk            2190 security/security.c 			    struct sock *newsk)
newsk            2192 security/security.c 	call_void_hook(sctp_sk_clone, ep, sk, newsk);
newsk            4883 security/selinux/hooks.c 					      struct sock *newsk)
newsk            4887 security/selinux/hooks.c 	struct sk_security_struct *sksec_new = newsk->sk_security;
newsk            5153 security/selinux/hooks.c static void selinux_sk_clone_security(const struct sock *sk, struct sock *newsk)
newsk            5156 security/selinux/hooks.c 	struct sk_security_struct *newsksec = newsk->sk_security;
newsk            5344 security/selinux/hooks.c 				  struct sock *newsk)
newsk            5347 security/selinux/hooks.c 	struct sk_security_struct *newsksec = newsk->sk_security;
newsk            5353 security/selinux/hooks.c 		return selinux_sk_clone_security(sk, newsk);
newsk            5358 security/selinux/hooks.c 	selinux_netlbl_sctp_sk_clone(sk, newsk);
newsk            5382 security/selinux/hooks.c static void selinux_inet_csk_clone(struct sock *newsk,
newsk            5385 security/selinux/hooks.c 	struct sk_security_struct *newsksec = newsk->sk_security;
newsk            5396 security/selinux/hooks.c 	selinux_netlbl_inet_csk_clone(newsk, req->rsk_ops->family);
newsk              46 security/selinux/include/netlabel.h void selinux_netlbl_sctp_sk_clone(struct sock *sk, struct sock *newsk);
newsk             122 security/selinux/include/netlabel.h 						struct sock *newsk)
newsk             371 security/selinux/netlabel.c void selinux_netlbl_sctp_sk_clone(struct sock *sk, struct sock *newsk)
newsk             374 security/selinux/netlabel.c 	struct sk_security_struct *newsksec = newsk->sk_security;
newsk            3573 security/smack/smack_lsm.c 				     struct sock *other, struct sock *newsk)
newsk            3579 security/smack/smack_lsm.c 	struct socket_smack *nsp = newsk->sk_security;