Home
last modified time | relevance | path

Searched refs:sk_prot (Results 1 – 35 of 35) sorted by relevance

/linux-4.1.27/include/net/
Dtimewait_sock.h29 if (sk->sk_prot->twsk_prot->twsk_unique != NULL) in twsk_unique()
30 return sk->sk_prot->twsk_prot->twsk_unique(sk, sktw, twp); in twsk_unique()
37 BUG_ON(sk->sk_prot == NULL); in twsk_destructor()
38 BUG_ON(sk->sk_prot->twsk_prot == NULL); in twsk_destructor()
39 if (sk->sk_prot->twsk_prot->twsk_destructor != NULL) in twsk_destructor()
40 sk->sk_prot->twsk_prot->twsk_destructor(sk); in twsk_destructor()
Dsock.h328 #define sk_prot __sk_common.skc_prot macro
1094 atomic_inc(&sk->sk_prot->socks); in sk_refcnt_debug_inc()
1099 atomic_dec(&sk->sk_prot->socks); in sk_refcnt_debug_dec()
1101 sk->sk_prot->name, sk, atomic_read(&sk->sk_prot->socks)); in sk_refcnt_debug_dec()
1108 sk->sk_prot->name, sk, atomic_read(&sk->sk_refcnt)); in sk_refcnt_debug_release()
1138 return sk->sk_prot->stream_memory_free ? in sk_stream_memory_free()
1139 sk->sk_prot->stream_memory_free(sk) : true; in sk_stream_memory_free()
1151 return sk->sk_prot->memory_pressure != NULL; in sk_has_memory_pressure()
1156 if (!sk->sk_prot->memory_pressure) in sk_under_memory_pressure()
1162 return !!*sk->sk_prot->memory_pressure; in sk_under_memory_pressure()
[all …]
Dinet_sock.h222 sk_from->sk_prot->obj_size - ancestor_size); in __inet_sk_copy_descendant()
Dtcp.h316 struct percpu_counter *ocp = sk->sk_prot->orphan_count; in tcp_too_many_orphans()
/linux-4.1.27/net/dccp/
Doutput.c401 struct sk_buff *skb = sock_wmalloc(sk, sk->sk_prot->max_header, 1, in dccp_make_response()
407 skb_reserve(skb, sk->sk_prot->max_header); in dccp_make_response()
461 skb = alloc_skb(sk->sk_prot->max_header, GFP_ATOMIC); in dccp_ctl_make_reset()
465 skb_reserve(skb, sk->sk_prot->max_header); in dccp_ctl_make_reset()
515 skb = sock_wmalloc(sk, sk->sk_prot->max_header, 1, GFP_ATOMIC); in dccp_send_reset()
520 skb_reserve(skb, sk->sk_prot->max_header); in dccp_send_reset()
549 skb = alloc_skb(sk->sk_prot->max_header, sk->sk_allocation); in dccp_connect()
554 skb_reserve(skb, sk->sk_prot->max_header); in dccp_connect()
574 struct sk_buff *skb = alloc_skb(sk->sk_prot->max_header, in dccp_send_ack()
587 skb_reserve(skb, sk->sk_prot->max_header); in dccp_send_ack()
[all …]
Dproto.c99 sk->sk_prot->unhash(sk); in dccp_set_state()
774 size = sk->sk_prot->max_header + len; in dccp_sendmsg()
781 skb_reserve(skb, sk->sk_prot->max_header); in dccp_sendmsg()
1020 sk->sk_prot->disconnect(sk, 0); in dccp_close()
1057 percpu_counter_inc(sk->sk_prot->orphan_count); in dccp_close()
/linux-4.1.27/net/ipv4/
Daf_inet.c179 if (sk->sk_prot->get_port(sk, 0)) { in inet_autobind()
355 sk->sk_backlog_rcv = sk->sk_prot->backlog_rcv; in inet_create()
375 sk->sk_prot->hash(sk); in inet_create()
378 if (sk->sk_prot->init) { in inet_create()
379 err = sk->sk_prot->init(sk); in inet_create()
418 sk->sk_prot->close(sk, timeout); in inet_release()
435 if (sk->sk_prot->bind) { in inet_bind()
436 err = sk->sk_prot->bind(sk, uaddr, addr_len); in inet_bind()
496 if (sk->sk_prot->get_port(sk, snum)) { in inet_bind()
526 return sk->sk_prot->disconnect(sk, flags); in inet_dgram_connect()
[all …]
Dinet_hashtables.c93 struct inet_hashinfo *hashinfo = sk->sk_prot->h.hashinfo; in inet_bind_hash()
108 struct inet_hashinfo *hashinfo = sk->sk_prot->h.hashinfo; in __inet_put_port()
136 struct inet_hashinfo *table = sk->sk_prot->h.hashinfo; in __inet_inherit_port()
385 sock_prot_inuse_add(sock_net(sk), sk->sk_prot, 1); in __inet_check_established()
412 struct inet_hashinfo *hashinfo = sk->sk_prot->h.hashinfo; in __inet_hash_nolisten()
432 sock_prot_inuse_add(sock_net(sk), sk->sk_prot, 1); in __inet_hash_nolisten()
439 struct inet_hashinfo *hashinfo = sk->sk_prot->h.hashinfo; in __inet_hash()
450 sock_prot_inuse_add(sock_net(sk), sk->sk_prot, 1); in __inet_hash()
468 struct inet_hashinfo *hashinfo = sk->sk_prot->h.hashinfo; in inet_unhash()
483 sock_prot_inuse_add(sock_net(sk), sk->sk_prot, -1); in inet_unhash()
Ddatagram.c71 if (sk->sk_prot->rehash) in __ip4_datagram_connect()
72 sk->sk_prot->rehash(sk); in __ip4_datagram_connect()
Dinet_connection_sock.c95 struct inet_hashinfo *hashinfo = sk->sk_prot->h.hashinfo; in inet_csk_get_port()
756 sk->sk_prot->destroy(sk); in inet_csk_destroy_sock()
764 percpu_counter_dec(sk->sk_prot->orphan_count); in inet_csk_destroy_sock()
781 percpu_counter_inc(sk->sk_prot->orphan_count); in inet_csk_prepare_forced_close()
805 if (!sk->sk_prot->get_port(sk, inet->inet_num)) { in inet_csk_listen_start()
809 sk->sk_prot->hash(sk); in inet_csk_listen_start()
854 sk->sk_prot->disconnect(child, O_NONBLOCK); in inet_csk_listen_stop()
858 percpu_counter_inc(sk->sk_prot->orphan_count); in inet_csk_listen_stop()
Draw.c98 struct raw_hashinfo *h = sk->sk_prot->h.raw_hash; in raw_hash_sk()
105 sock_prot_inuse_add(sock_net(sk), sk->sk_prot, 1); in raw_hash_sk()
112 struct raw_hashinfo *h = sk->sk_prot->h.raw_hash; in raw_unhash_sk()
116 sock_prot_inuse_add(sock_net(sk), sk->sk_prot, -1); in raw_unhash_sk()
Dtcp.c820 skb = alloc_skb_fclone(size + sk->sk_prot->max_header, gfp); in sk_stream_alloc_skb()
823 skb_reserve(skb, sk->sk_prot->max_header); in sk_stream_alloc_skb()
833 sk->sk_prot->enter_memory_pressure(sk); in sk_stream_alloc_skb()
1891 sk->sk_prot->unhash(sk); in tcp_set_state()
2030 sk->sk_prot->disconnect(sk, 0); in tcp_close()
2038 sk->sk_prot->disconnect(sk, 0); in tcp_close()
2091 percpu_counter_inc(sk->sk_prot->orphan_count); in tcp_close()
Dinet_timewait_sock.c169 sock_prot_inuse_add(sock_net(sk), sk->sk_prot, -1); in __inet_twsk_hashdance()
Dudp.c215 struct udp_table *udptable = sk->sk_prot->h.udp_table; in udp_lib_get_port()
296 sock_prot_inuse_add(sock_net(sk), sk->sk_prot, 1); in udp_lib_get_port()
1373 sk->sk_prot->unhash(sk); in udp_disconnect()
1384 struct udp_table *udptable = sk->sk_prot->h.udp_table; in udp_lib_unhash()
1395 sock_prot_inuse_add(sock_net(sk), sk->sk_prot, -1); in udp_lib_unhash()
1413 struct udp_table *udptable = sk->sk_prot->h.udp_table; in udp_lib_rehash()
Dping.c137 sock_prot_inuse_add(sock_net(sk), sk->sk_prot, 1); in ping_get_port()
165 sock_prot_inuse_add(sock_net(sk), sk->sk_prot, -1); in ping_unhash()
/linux-4.1.27/net/ieee802154/
Dsocket.c96 sk->sk_prot->close(sk, 0); in ieee802154_sock_release()
106 return sk->sk_prot->sendmsg(sk, msg, len); in ieee802154_sock_sendmsg()
114 if (sk->sk_prot->bind) in ieee802154_sock_bind()
115 return sk->sk_prot->bind(sk, uaddr, addr_len); in ieee802154_sock_bind()
129 return sk->sk_prot->disconnect(sk, flags); in ieee802154_sock_connect()
131 return sk->sk_prot->connect(sk, uaddr, addr_len); in ieee802154_sock_connect()
177 if (!sk->sk_prot->ioctl) in ieee802154_sock_ioctl()
179 return sk->sk_prot->ioctl(sk, cmd, arg); in ieee802154_sock_ioctl()
191 sock_prot_inuse_add(sock_net(sk), sk->sk_prot, 1); in raw_hash()
199 sock_prot_inuse_add(sock_net(sk), sk->sk_prot, -1); in raw_unhash()
[all …]
/linux-4.1.27/net/phonet/
Dsocket.c45 sk->sk_prot->close(sk, 0); in pn_socket_release()
174 if (sk->sk_prot->bind) in pn_socket_bind()
175 return sk->sk_prot->bind(sk, addr, len); in pn_socket_bind()
194 err = sk->sk_prot->get_port(sk, pn_port(handle)); in pn_socket_bind()
203 sk->sk_prot->hash(sk); in pn_socket_bind()
264 err = sk->sk_prot->connect(sk, addr, len); in pn_socket_connect()
313 newsk = sk->sk_prot->accept(sk, flags, &err); in pn_socket_accept()
401 return sk->sk_prot->ioctl(sk, cmd, arg); in pn_socket_ioctl()
436 return sk->sk_prot->sendmsg(sk, m, total_len); in pn_socket_sendmsg()
Daf_phonet.c109 sk->sk_backlog_rcv = sk->sk_prot->backlog_rcv; in pn_socket_create()
115 sk->sk_prot->init(sk); in pn_socket_create()
Dpep.c848 newsk = sk_alloc(sock_net(sk), PF_PHONET, GFP_KERNEL, sk->sk_prot); in pep_sock_accept()
/linux-4.1.27/net/ipv6/
Daf_inet6.c95 const int offset = sk->sk_prot->obj_size - sizeof(struct ipv6_pinfo); in inet6_sk_generic()
237 sk->sk_prot->hash(sk); in inet6_create()
239 if (sk->sk_prot->init) { in inet6_create()
240 err = sk->sk_prot->init(sk); in inet6_create()
268 if (sk->sk_prot->bind) in inet6_bind()
269 return sk->sk_prot->bind(sk, uaddr, addr_len); in inet6_bind()
368 if (sk->sk_prot->get_port(sk, snum)) { in inet6_bind()
503 if (!sk->sk_prot->ioctl) in inet6_ioctl()
505 return sk->sk_prot->ioctl(sk, cmd, arg); in inet6_ioctl()
Ddatagram.c119 if (sk->sk_prot->rehash) in __ip6_datagram_connect()
120 sk->sk_prot->rehash(sk); in __ip6_datagram_connect()
193 if (sk->sk_prot->rehash) in __ip6_datagram_connect()
194 sk->sk_prot->rehash(sk); in __ip6_datagram_connect()
Dipv6_sockglue.c214 sock_prot_inuse_add(net, sk->sk_prot, -1); in do_ipv6_setsockopt()
217 sk->sk_prot = &tcp_prot; in do_ipv6_setsockopt()
228 sock_prot_inuse_add(net, sk->sk_prot, -1); in do_ipv6_setsockopt()
231 sk->sk_prot = prot; in do_ipv6_setsockopt()
Dinet6_hashtables.c243 sock_prot_inuse_add(sock_net(sk), sk->sk_prot, 1); in __inet6_check_established()
/linux-4.1.27/net/core/
Dsock.c1293 osk->sk_prot->obj_size - offsetof(struct sock, sk_dontcopy_end)); in sock_copy()
1408 sk->sk_prot = sk->sk_prot_creator = prot; in sk_alloc()
1497 newsk = sk_prot_alloc(sk->sk_prot, priority, sk->sk_family); in sk_clone_lock()
1581 if (newsk->sk_prot->sockets_allocated) in sk_clone_lock()
2003 struct proto *prot = sk->sk_prot; in __sk_mem_schedule()
2395 if (sk->sk_prot->release_cb) in release_sock()
2396 sk->sk_prot->release_cb(sk); in release_sock()
2534 return sk->sk_prot->getsockopt(sk, level, optname, optval, optlen); in sock_common_getsockopt()
2544 if (sk->sk_prot->compat_getsockopt != NULL) in compat_sock_common_getsockopt()
2545 return sk->sk_prot->compat_getsockopt(sk, level, optname, in compat_sock_common_getsockopt()
[all …]
/linux-4.1.27/net/can/
Daf_can.c193 if (sk->sk_prot->init) in can_create()
194 err = sk->sk_prot->init(sk); in can_create()
/linux-4.1.27/drivers/staging/lustre/lnet/klnds/socklnd/
Dsocklnd_lib-linux.c147 if (sk->sk_prot->sendpage != NULL) { in ksocknal_lib_send_kiov()
148 rc = sk->sk_prot->sendpage(sk, page, in ksocknal_lib_send_kiov()
/linux-4.1.27/net/sctp/
Dipv6.c639 newsk = sk_alloc(sock_net(sk), PF_INET6, GFP_KERNEL, sk->sk_prot); in sctp_v6_create_accept_sk()
673 if (newsk->sk_prot->init(newsk)) { in sctp_v6_create_accept_sk()
Dprotocol.c555 sk->sk_prot); in sctp_v4_create_accept_sk()
572 if (newsk->sk_prot->init(newsk)) { in sctp_v4_create_accept_sk()
Dsocket.c4126 sock_prot_inuse_add(net, sk->sk_prot, 1); in sctp_init_sock()
4170 sock_prot_inuse_add(sock_net(sk), sk->sk_prot, -1); in sctp_destroy_sock()
7193 newsk->sk_backlog_rcv = sk->sk_prot->backlog_rcv; in sctp_copy_sock()
/linux-4.1.27/net/llc/
Dllc_conn.c771 sk->sk_prot); in llc_create_incoming_sock()
/linux-4.1.27/net/unix/
Daf_unix.c491 sock_prot_inuse_add(sock_net(sk), sk->sk_prot, -1); in unix_sock_destructor()
772 sock_prot_inuse_add(sock_net(sk), sk->sk_prot, 1); in unix_create1()
/linux-4.1.27/net/netrom/
Daf_netrom.c479 sk = sk_alloc(sock_net(osk), PF_NETROM, GFP_ATOMIC, osk->sk_prot); in nr_make_new()
/linux-4.1.27/net/ax25/
Daf_ax25.c887 sk = sk_alloc(sock_net(osk), PF_AX25, GFP_ATOMIC, osk->sk_prot); in ax25_make_new()
/linux-4.1.27/mm/
Dmemcontrol.c481 BUG_ON(!sk->sk_prot->proto_cgroup); in sock_update_memcg()
499 cg_proto = sk->sk_prot->proto_cgroup(memcg); in sock_update_memcg()
/linux-4.1.27/net/packet/
Daf_packet.c2643 sock_prot_inuse_add(net, sk->sk_prot, -1); in packet_release()