Home
last modified time | relevance | path

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

/linux-4.4.14/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()
36 if (sk->sk_prot->twsk_prot->twsk_destructor != NULL) in twsk_destructor()
37 sk->sk_prot->twsk_prot->twsk_destructor(sk); in twsk_destructor()
Dsock.h349 #define sk_prot __sk_common.skc_prot macro
1078 atomic_inc(&sk->sk_prot->socks); in sk_refcnt_debug_inc()
1083 atomic_dec(&sk->sk_prot->socks); in sk_refcnt_debug_dec()
1085 sk->sk_prot->name, sk, atomic_read(&sk->sk_prot->socks)); in sk_refcnt_debug_dec()
1092 sk->sk_prot->name, sk, atomic_read(&sk->sk_refcnt)); in sk_refcnt_debug_release()
1122 return sk->sk_prot->stream_memory_free ? in sk_stream_memory_free()
1123 sk->sk_prot->stream_memory_free(sk) : true; in sk_stream_memory_free()
1135 return sk->sk_prot->memory_pressure != NULL; in sk_has_memory_pressure()
1140 if (!sk->sk_prot->memory_pressure) in sk_under_memory_pressure()
1146 return !!*sk->sk_prot->memory_pressure; in sk_under_memory_pressure()
[all …]
Drequest_sock.h97 req_to_sk(req)->sk_prot = sk_listener->sk_prot; in reqsk_alloc()
Dinet_sock.h254 sk_from->sk_prot->obj_size - ancestor_size); in __inet_sk_copy_descendant()
Dtcp.h329 struct percpu_counter *ocp = sk->sk_prot->orphan_count; in tcp_too_many_orphans()
/linux-4.4.14/net/ipv4/
Daf_inet.c181 if (sk->sk_prot->get_port(sk, 0)) { in inet_autobind()
353 sk->sk_backlog_rcv = sk->sk_prot->backlog_rcv; in inet_create()
373 sk->sk_prot->hash(sk); in inet_create()
376 if (sk->sk_prot->init) { in inet_create()
377 err = sk->sk_prot->init(sk); in inet_create()
416 sk->sk_prot->close(sk, timeout); in inet_release()
434 if (sk->sk_prot->bind) { in inet_bind()
435 err = sk->sk_prot->bind(sk, uaddr, addr_len); in inet_bind()
497 sk->sk_prot->get_port(sk, snum)) { in inet_bind()
527 return sk->sk_prot->disconnect(sk, flags); in inet_dgram_connect()
[all …]
Dinet_hashtables.c105 struct inet_hashinfo *hashinfo = sk->sk_prot->h.hashinfo; in __inet_put_port()
131 struct inet_hashinfo *table = sk->sk_prot->h.hashinfo; in __inet_inherit_port()
383 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_ehash_insert()
441 sock_prot_inuse_add(sock_net(sk), sk->sk_prot, 1); in inet_ehash_nolisten()
443 percpu_counter_inc(sk->sk_prot->orphan_count); in inet_ehash_nolisten()
454 struct inet_hashinfo *hashinfo = sk->sk_prot->h.hashinfo; in __inet_hash()
466 sock_prot_inuse_add(sock_net(sk), sk->sk_prot, 1); in __inet_hash()
483 struct inet_hashinfo *hashinfo = sk->sk_prot->h.hashinfo; in inet_unhash()
498 sock_prot_inuse_add(sock_net(sk), sk->sk_prot, -1); in inet_unhash()
Dinet_connection_sock.c95 struct inet_hashinfo *hashinfo = sk->sk_prot->h.hashinfo; in inet_csk_get_port()
525 struct inet_hashinfo *hashinfo = req_to_sk(req)->sk_prot->h.hashinfo; in reqsk_queue_unlink()
706 sk->sk_prot->destroy(sk); in inet_csk_destroy_sock()
714 percpu_counter_dec(sk->sk_prot->orphan_count); in inet_csk_destroy_sock()
731 percpu_counter_inc(sk->sk_prot->orphan_count); in inet_csk_prepare_forced_close()
753 if (!sk->sk_prot->get_port(sk, inet->inet_num)) { in inet_csk_listen_start()
757 sk->sk_prot->hash(sk); in inet_csk_listen_start()
770 sk->sk_prot->disconnect(child, O_NONBLOCK); in inet_child_forget()
774 percpu_counter_inc(sk->sk_prot->orphan_count); in inet_child_forget()
Ddatagram.c71 if (sk->sk_prot->rehash) in __ip4_datagram_connect()
72 sk->sk_prot->rehash(sk); in __ip4_datagram_connect()
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.c827 skb = alloc_skb_fclone(size + sk->sk_prot->max_header, gfp); in sk_stream_alloc_skb()
838 skb_reserve(skb, sk->sk_prot->max_header); in sk_stream_alloc_skb()
848 sk->sk_prot->enter_memory_pressure(sk); in sk_stream_alloc_skb()
1924 sk->sk_prot->unhash(sk); in tcp_set_state()
2063 sk->sk_prot->disconnect(sk, 0); in tcp_close()
2071 sk->sk_prot->disconnect(sk, 0); in tcp_close()
2124 percpu_counter_inc(sk->sk_prot->orphan_count); in tcp_close()
Dinet_timewait_sock.c139 sock_prot_inuse_add(sock_net(sk), sk->sk_prot, -1); in __inet_twsk_hashdance()
Dudp.c214 struct udp_table *udptable = sk->sk_prot->h.udp_table; in udp_lib_get_port()
295 sock_prot_inuse_add(sock_net(sk), sk->sk_prot, 1); in udp_lib_get_port()
1384 sk->sk_prot->unhash(sk); in udp_disconnect()
1395 struct udp_table *udptable = sk->sk_prot->h.udp_table; in udp_lib_unhash()
1406 sock_prot_inuse_add(sock_net(sk), sk->sk_prot, -1); in udp_lib_unhash()
1424 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.4.14/net/dccp/
Doutput.c466 skb = alloc_skb(sk->sk_prot->max_header, GFP_ATOMIC); in dccp_ctl_make_reset()
470 skb_reserve(skb, sk->sk_prot->max_header); in dccp_ctl_make_reset()
520 skb = sock_wmalloc(sk, sk->sk_prot->max_header, 1, GFP_ATOMIC); in dccp_send_reset()
525 skb_reserve(skb, sk->sk_prot->max_header); in dccp_send_reset()
554 skb = alloc_skb(sk->sk_prot->max_header, sk->sk_allocation); in dccp_connect()
559 skb_reserve(skb, sk->sk_prot->max_header); in dccp_connect()
579 struct sk_buff *skb = alloc_skb(sk->sk_prot->max_header, in dccp_send_ack()
592 skb_reserve(skb, sk->sk_prot->max_header); in dccp_send_ack()
641 struct sk_buff *skb = alloc_skb(sk->sk_prot->max_header, GFP_ATOMIC); in dccp_send_sync()
650 skb_reserve(skb, sk->sk_prot->max_header); in dccp_send_sync()
[all …]
Dproto.c99 sk->sk_prot->unhash(sk); in dccp_set_state()
773 size = sk->sk_prot->max_header + len; in dccp_sendmsg()
780 skb_reserve(skb, sk->sk_prot->max_header); in dccp_sendmsg()
1019 sk->sk_prot->disconnect(sk, 0); in dccp_close()
1056 percpu_counter_inc(sk->sk_prot->orphan_count); in dccp_close()
/linux-4.4.14/net/ieee802154/
Dsocket.c94 sk->sk_prot->close(sk, 0); in ieee802154_sock_release()
104 return sk->sk_prot->sendmsg(sk, msg, len); in ieee802154_sock_sendmsg()
112 if (sk->sk_prot->bind) in ieee802154_sock_bind()
113 return sk->sk_prot->bind(sk, uaddr, addr_len); in ieee802154_sock_bind()
127 return sk->sk_prot->disconnect(sk, flags); in ieee802154_sock_connect()
129 return sk->sk_prot->connect(sk, uaddr, addr_len); in ieee802154_sock_connect()
175 if (!sk->sk_prot->ioctl) in ieee802154_sock_ioctl()
177 return sk->sk_prot->ioctl(sk, cmd, arg); in ieee802154_sock_ioctl()
189 sock_prot_inuse_add(sock_net(sk), sk->sk_prot, 1); in raw_hash()
197 sock_prot_inuse_add(sock_net(sk), sk->sk_prot, -1); in raw_unhash()
[all …]
/linux-4.4.14/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, 0); in pep_sock_accept()
/linux-4.4.14/net/ipv6/
Daf_inet6.c95 const int offset = sk->sk_prot->obj_size - sizeof(struct ipv6_pinfo); in inet6_sk_generic()
238 sk->sk_prot->hash(sk); in inet6_create()
240 if (sk->sk_prot->init) { in inet6_create()
241 err = sk->sk_prot->init(sk); in inet6_create()
269 if (sk->sk_prot->bind) in inet6_bind()
270 return sk->sk_prot->bind(sk, uaddr, addr_len); in inet6_bind()
371 sk->sk_prot->get_port(sk, snum)) { in inet6_bind()
506 if (!sk->sk_prot->ioctl) in inet6_ioctl()
508 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.c242 sock_prot_inuse_add(sock_net(sk), sk->sk_prot, 1); in __inet6_check_established()
/linux-4.4.14/net/core/
Dsock.c1310 osk->sk_prot->obj_size - offsetof(struct sock, sk_dontcopy_end)); in sock_copy()
1426 sk->sk_prot = sk->sk_prot_creator = prot; in sk_alloc()
1508 newsk = sk_prot_alloc(sk->sk_prot, priority, sk->sk_family); in sk_clone_lock()
1592 if (newsk->sk_prot->sockets_allocated) in sk_clone_lock()
2069 struct proto *prot = sk->sk_prot; in __sk_mem_schedule()
2461 if (sk->sk_prot->release_cb) in release_sock()
2462 sk->sk_prot->release_cb(sk); in release_sock()
2601 return sk->sk_prot->getsockopt(sk, level, optname, optval, optlen); in sock_common_getsockopt()
2611 if (sk->sk_prot->compat_getsockopt != NULL) in compat_sock_common_getsockopt()
2612 return sk->sk_prot->compat_getsockopt(sk, level, optname, in compat_sock_common_getsockopt()
[all …]
/linux-4.4.14/net/rds/
Dtcp_listen.c123 nsk->sk_prot->disconnect(nsk, 0); in rds_tcp_accept_one()
Dtcp.c356 sk->sk_prot->disconnect(sk, 0); in rds_tcp_kill_sock()
/linux-4.4.14/drivers/staging/lustre/lnet/klnds/socklnd/
Dsocklnd_lib.c145 if (sk->sk_prot->sendpage != NULL) { in ksocknal_lib_send_kiov()
146 rc = sk->sk_prot->sendpage(sk, page, in ksocknal_lib_send_kiov()
/linux-4.4.14/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.4.14/net/sctp/
Dipv6.c648 newsk = sk_alloc(sock_net(sk), PF_INET6, GFP_KERNEL, sk->sk_prot, 0); in sctp_v6_create_accept_sk()
682 if (newsk->sk_prot->init(newsk)) { in sctp_v6_create_accept_sk()
Dprotocol.c575 sk->sk_prot, 0); in sctp_v4_create_accept_sk()
592 if (newsk->sk_prot->init(newsk)) { in sctp_v4_create_accept_sk()
Dsocket.c4113 sock_prot_inuse_add(net, sk->sk_prot, 1); in sctp_init_sock()
4157 sock_prot_inuse_add(sock_net(sk), sk->sk_prot, -1); in sctp_destroy_sock()
7184 newsk->sk_backlog_rcv = sk->sk_prot->backlog_rcv; in sctp_copy_sock()
/linux-4.4.14/net/llc/
Dllc_conn.c771 sk->sk_prot, 0); in llc_create_incoming_sock()
/linux-4.4.14/net/unix/
Daf_unix.c502 sock_prot_inuse_add(sock_net(sk), sk->sk_prot, -1); in unix_sock_destructor()
790 sock_prot_inuse_add(sock_net(sk), sk->sk_prot, 1); in unix_create1()
/linux-4.4.14/net/netrom/
Daf_netrom.c479 sk = sk_alloc(sock_net(osk), PF_NETROM, GFP_ATOMIC, osk->sk_prot, 0); in nr_make_new()
/linux-4.4.14/net/ax25/
Daf_ax25.c886 sk = sk_alloc(sock_net(osk), PF_AX25, GFP_ATOMIC, osk->sk_prot, 0); in ax25_make_new()
/linux-4.4.14/mm/
Dmemcontrol.c301 BUG_ON(!sk->sk_prot->proto_cgroup); in sock_update_memcg()
319 cg_proto = sk->sk_prot->proto_cgroup(memcg); in sock_update_memcg()
/linux-4.4.14/net/packet/
Daf_packet.c2863 sock_prot_inuse_add(net, sk->sk_prot, -1); in packet_release()