Home
last modified time | relevance | path

Searched defs:sk (Results 1 – 25 of 82) sorted by relevance

1234

/include/net/
Dsock.h83 #define SOCK_DEBUG(sk, msg...) do { if ((sk) && sock_flag((sk), SOCK_DBG)) \ argument
88 void SOCK_DEBUG(const struct sock *sk, const char *msg, ...) in SOCK_DEBUG()
576 static inline bool sk_user_data_is_nocopy(const struct sock *sk) in sk_user_data_is_nocopy()
581 #define __sk_user_data(sk) ((*((void __rcu **)&(sk)->sk_user_data))) argument
592 __rcu_dereference_sk_user_data_with_flags(const struct sock *sk, in __rcu_dereference_sk_user_data_with_flags()
604 #define rcu_dereference_sk_user_data(sk) \ argument
606 #define __rcu_assign_sk_user_data_with_flags(sk, ptr, flags) \ argument
615 #define rcu_assign_sk_user_data(sk, ptr) \ argument
631 static inline int sk_peek_offset(struct sock *sk, int flags) in sk_peek_offset()
640 static inline void sk_peek_offset_bwd(struct sock *sk, int val) in sk_peek_offset_bwd()
[all …]
Dbusy_poll.h37 static inline bool sk_can_busy_loop(const struct sock *sk) in sk_can_busy_loop()
54 static inline bool sk_can_busy_loop(struct sock *sk) in sk_can_busy_loop()
86 static inline bool sk_busy_loop_timeout(struct sock *sk, in sk_busy_loop_timeout()
102 static inline void sk_busy_loop(struct sock *sk, int nonblock) in sk_busy_loop()
126 static inline void sk_mark_napi_id(struct sock *sk, const struct sk_buff *skb) in sk_mark_napi_id()
135 static inline void sk_mark_napi_id_once(struct sock *sk, in sk_mark_napi_id_once()
Dtcp.h261 static inline bool tcp_under_memory_pressure(const struct sock *sk) in tcp_under_memory_pressure()
286 static inline bool tcp_out_of_memory(struct sock *sk) in tcp_out_of_memory()
296 static inline bool tcp_too_many_orphans(struct sock *sk, int shift) in tcp_too_many_orphans()
354 static inline void tcp_dec_quickack_mode(struct sock *sk) in tcp_dec_quickack_mode()
498 static inline void tcp_synq_overflow(const struct sock *sk) in tcp_synq_overflow()
522 static inline bool tcp_synq_no_recent_overflow(const struct sock *sk) in tcp_synq_no_recent_overflow()
622 static inline void tcp_clear_xmit_timers(struct sock *sk) in tcp_clear_xmit_timers()
673 static inline void tcp_bound_rto(const struct sock *sk) in tcp_bound_rto()
700 static inline void tcp_fast_path_check(struct sock *sk) in tcp_fast_path_check()
712 static inline u32 tcp_rto_min(struct sock *sk) in tcp_rto_min()
[all …]
Dinet_connection_sock.h153 static inline struct inet_connection_sock *inet_csk(const struct sock *sk) in inet_csk()
158 static inline void *inet_csk_ca(const struct sock *sk) in inet_csk_ca()
181 static inline void inet_csk_schedule_ack(struct sock *sk) in inet_csk_schedule_ack()
186 static inline int inet_csk_ack_scheduled(const struct sock *sk) in inet_csk_ack_scheduled()
191 static inline void inet_csk_delack_init(struct sock *sk) in inet_csk_delack_init()
199 static inline void inet_csk_clear_xmit_timer(struct sock *sk, const int what) in inet_csk_clear_xmit_timer()
222 static inline void inet_csk_reset_xmit_timer(struct sock *sk, const int what, in inet_csk_reset_xmit_timer()
277 static inline void inet_csk_reqsk_queue_added(struct sock *sk) in inet_csk_reqsk_queue_added()
282 static inline int inet_csk_reqsk_queue_len(const struct sock *sk) in inet_csk_reqsk_queue_len()
287 static inline int inet_csk_reqsk_queue_is_full(const struct sock *sk) in inet_csk_reqsk_queue_is_full()
[all …]
Dudp.h128 static inline __wsum udp_csum_outgoing(struct sock *sk, struct sk_buff *skb) in udp_csum_outgoing()
199 static inline int udp_lib_hash(struct sock *sk) in udp_lib_hash()
208 static inline void udp_lib_close(struct sock *sk, long timeout) in udp_lib_close()
254 static inline int udp_rqueue_get(struct sock *sk) in udp_rqueue_get()
277 static inline struct sk_buff *skb_recv_udp(struct sock *sk, unsigned int flags, in skb_recv_udp()
424 #define __UDPX_MIB(sk, ipv4) \ argument
432 #define __UDPX_MIB(sk, ipv4) \ argument
439 #define __UDPX_INC_STATS(sk, field) \ argument
477 static inline struct sk_buff *udp_rcv_segment(struct sock *sk, in udp_rcv_segment()
Dinet_sock.h103 static inline struct inet_request_sock *inet_rsk(const struct request_sock *sk) in inet_rsk()
108 static inline u32 inet_request_mark(const struct sock *sk, struct sk_buff *skb) in inet_request_mark()
117 static inline int inet_request_bound_dev_if(const struct sock *sk, in inet_request_bound_dev_if()
131 static inline int inet_sk_bound_l3mdev(const struct sock *sk) in inet_sk_bound_l3mdev()
210 struct sock sk; member
276 static inline struct sock *sk_to_full_sk(struct sock *sk) in sk_to_full_sk()
286 static inline const struct sock *sk_const_to_full_sk(const struct sock *sk) in sk_const_to_full_sk()
300 static inline struct inet_sock *inet_sk(const struct sock *sk) in inet_sk()
322 static inline int inet_sk_state_load(const struct sock *sk) in inet_sk_state_load()
356 static inline __u8 inet_sk_flowi_flags(const struct sock *sk) in inet_sk_flowi_flags()
[all …]
Dtls.h132 struct sock *sk; member
280 struct sock *sk; member
474 static inline bool tls_is_sk_tx_device_offloaded(struct sock *sk) in tls_is_sk_tx_device_offloaded()
510 static inline struct tls_context *tls_get_ctx(const struct sock *sk) in tls_get_ctx()
520 static inline void tls_advance_record_sn(struct sock *sk, in tls_advance_record_sn()
613 static inline bool tls_sw_has_ctx_tx(const struct sock *sk) in tls_sw_has_ctx_tx()
622 static inline bool tls_sw_has_ctx_rx(const struct sock *sk) in tls_sw_has_ctx_rx()
651 tls_driver_ctx(const struct sock *sk, enum tls_offload_ctx_dir direction) in tls_driver_ctx()
660 static inline void tls_offload_rx_resync_request(struct sock *sk, __be32 seq) in tls_offload_rx_resync_request()
670 tls_offload_rx_resync_async_request_start(struct sock *sk, __be32 seq, u16 len) in tls_offload_rx_resync_async_request_start()
[all …]
Dbpf_sk_storage.h40 static inline int bpf_sk_storage_clone(const struct sock *sk, in bpf_sk_storage_clone()
54 struct sock *sk, struct sk_buff *skb, in bpf_sk_storage_diag_put()
Dinet6_hashtables.h70 struct sock *sk = __inet6_lookup_established(net, hashinfo, saddr, in __inet6_lookup() local
88 struct sock *sk = skb_steal_sock(skb, refcounted); in __inet6_lookup_skb() local
107 static inline bool inet6_match(struct net *net, const struct sock *sk, in inet6_match()
Dtimewait_sock.h23 static inline int twsk_unique(struct sock *sk, struct sock *sktw, void *twp) in twsk_unique()
30 static inline void twsk_destructor(struct sock *sk) in twsk_destructor()
Dmptcp.h63 static inline bool sk_is_mptcp(const struct sock *sk) in sk_is_mptcp()
143 static inline bool sk_is_mptcp(const struct sock *sk) in sk_is_mptcp()
164 static inline bool mptcp_syn_options(struct sock *sk, const struct sk_buff *skb, in mptcp_syn_options()
178 static inline bool mptcp_established_options(struct sock *sk, in mptcp_established_options()
187 static inline void mptcp_incoming_options(struct sock *sk, in mptcp_incoming_options()
226 static inline void mptcpv6_handle_mapped(struct sock *sk, bool mapped) { } in mptcpv6_handle_mapped()
Dinet_hashtables.h222 static inline int inet_sk_listen_hashfn(const struct sock *sk) in inet_sk_listen_hashfn()
293 static inline bool INET_MATCH(struct net *net, const struct sock *sk, in INET_MATCH()
335 struct sock *sk; in __inet_lookup() local
354 struct sock *sk; in inet_lookup() local
373 struct sock *sk = skb_steal_sock(skb, refcounted); in __inet_lookup_skb() local
389 static inline void sk_daddr_set(struct sock *sk, __be32 addr) in sk_daddr_set()
397 static inline void sk_rcv_saddr_set(struct sock *sk, __be32 addr) in sk_rcv_saddr_set()
Dl3mdev.h194 struct sk_buff *l3mdev_l3_out(struct sock *sk, struct sk_buff *skb, u16 proto) in l3mdev_l3_out()
211 struct sk_buff *l3mdev_ip_out(struct sock *sk, struct sk_buff *skb) in l3mdev_ip_out()
217 struct sk_buff *l3mdev_ip6_out(struct sock *sk, struct sk_buff *skb) in l3mdev_ip6_out()
291 struct sk_buff *l3mdev_ip_out(struct sock *sk, struct sk_buff *skb) in l3mdev_ip_out()
297 struct sk_buff *l3mdev_ip6_out(struct sock *sk, struct sk_buff *skb) in l3mdev_ip6_out()
Droute.h43 #define RT_CONN_FLAGS(sk) (RT_TOS(inet_sk(sk)->tos) | sock_flag(sk, SOCK_LOCALROUTE)) argument
44 #define RT_CONN_FLAGS_TOS(sk,tos) (RT_TOS(tos) | sock_flag(sk, SOCK_LOCALROUTE)) argument
158 struct sock *sk, in ip_route_output_ports()
294 struct sock *sk) in ip_route_connect_init()
310 struct sock *sk) in ip_route_connect()
332 struct sock *sk) in ip_route_newports()
Dip.h130 struct sock *sk; member
243 static inline struct sk_buff *ip_finish_skb(struct sock *sk, struct flowi4 *fl4) in ip_finish_skb()
253 static inline __u8 get_rtconn_flags(struct ipcm_cookie* ipc, struct sock* sk) in get_rtconn_flags()
427 int ip_dont_fragment(const struct sock *sk, const struct dst_entry *dst) in ip_dont_fragment()
436 static inline bool ip_sk_accept_pmtu(const struct sock *sk) in ip_sk_accept_pmtu()
442 static inline bool ip_sk_use_pmtu(const struct sock *sk) in ip_sk_use_pmtu()
447 static inline bool ip_sk_ignore_df(const struct sock *sk) in ip_sk_ignore_df()
472 static inline unsigned int ip_skb_dst_mtu(struct sock *sk, in ip_skb_dst_mtu()
522 struct sock *sk, int segs) in ip_select_ident_segs()
543 struct sock *sk) in ip_select_ident()
[all …]
Dip6_route.h95 const struct sock *sk, in ip6_route_output()
227 static inline void ip6_dst_store(struct sock *sk, struct dst_entry *dst, in ip6_dst_store()
281 static inline bool ip6_sk_accept_pmtu(const struct sock *sk) in ip6_sk_accept_pmtu()
287 static inline bool ip6_sk_ignore_df(const struct sock *sk) in ip6_sk_ignore_df()
/include/linux/
Dbpf-cgroup.h225 #define BPF_CGROUP_RUN_PROG_INET_INGRESS(sk, skb) \ argument
235 #define BPF_CGROUP_RUN_PROG_INET_EGRESS(sk, skb) \ argument
247 #define BPF_CGROUP_RUN_SK_PROG(sk, type) \ argument
256 #define BPF_CGROUP_RUN_PROG_INET_SOCK(sk) \ argument
259 #define BPF_CGROUP_RUN_PROG_INET_SOCK_RELEASE(sk) \ argument
262 #define BPF_CGROUP_RUN_PROG_INET4_POST_BIND(sk) \ argument
265 #define BPF_CGROUP_RUN_PROG_INET6_POST_BIND(sk) \ argument
268 #define BPF_CGROUP_RUN_SA_PROG(sk, uaddr, type) \ argument
277 #define BPF_CGROUP_RUN_SA_PROG_LOCK(sk, uaddr, type, t_ctx) \ argument
289 #define BPF_CGROUP_RUN_PROG_INET4_BIND(sk, uaddr) \ argument
[all …]
Dudp.h98 static inline struct udp_sock *udp_sk(const struct sock *sk) in udp_sk()
103 static inline void udp_set_no_check6_tx(struct sock *sk, bool val) in udp_set_no_check6_tx()
108 static inline void udp_set_no_check6_rx(struct sock *sk, bool val) in udp_set_no_check6_rx()
113 static inline bool udp_get_no_check6_tx(struct sock *sk) in udp_get_no_check6_tx()
118 static inline bool udp_get_no_check6_rx(struct sock *sk) in udp_get_no_check6_rx()
123 static inline void udp_cmsg_recv(struct msghdr *msg, struct sock *sk, in udp_cmsg_recv()
134 static inline bool udp_unexpected_gso(struct sock *sk, struct sk_buff *skb) in udp_unexpected_gso()
Dsock_diag.h30 static inline u64 sock_gen_cookie(struct sock *sk) in sock_gen_cookie()
49 enum sknetlink_groups sock_diag_destroy_group(const struct sock *sk) in sock_diag_destroy_group()
82 bool sock_diag_has_destroy_listeners(const struct sock *sk) in sock_diag_has_destroy_listeners()
Dnetfilter.h73 struct sock *sk; member
145 struct sock *sk, in nf_hook_state_init()
209 struct sock *sk, struct sk_buff *skb, in nf_hook()
279 NF_HOOK_COND(uint8_t pf, unsigned int hook, struct net *net, struct sock *sk, in NF_HOOK_COND()
293 NF_HOOK(uint8_t pf, unsigned int hook, struct net *net, struct sock *sk, struct sk_buff *skb, in NF_HOOK()
304 NF_HOOK_LIST(uint8_t pf, unsigned int hook, struct net *net, struct sock *sk, in NF_HOOK_LIST()
396 NF_HOOK_COND(uint8_t pf, unsigned int hook, struct net *net, struct sock *sk, in NF_HOOK_COND()
405 NF_HOOK(uint8_t pf, unsigned int hook, struct net *net, struct sock *sk, in NF_HOOK()
413 NF_HOOK_LIST(uint8_t pf, unsigned int hook, struct net *net, struct sock *sk, in NF_HOOK_LIST()
421 struct sock *sk, struct sk_buff *skb, in nf_hook()
Dskmsg.h53 struct sock *sk; member
86 struct sock *sk; member
282 static inline struct sk_psock *sk_psock(const struct sock *sk) in sk_psock()
301 struct sock *sk = psock->sk; in sk_psock_report_error() local
342 static inline void sk_psock_update_proto(struct sock *sk, in sk_psock_update_proto()
350 static inline void sk_psock_restore_proto(struct sock *sk, in sk_psock_restore_proto()
386 static inline struct sk_psock *sk_psock_get(struct sock *sk) in sk_psock_get()
401 static inline void sk_psock_put(struct sock *sk, struct sk_psock *psock) in sk_psock_put()
407 static inline void sk_psock_data_ready(struct sock *sk, struct sk_psock *psock) in sk_psock_data_ready()
/include/trace/events/
Dnet_probe_common.h6 #define TP_STORE_ADDR_PORTS_V4(__entry, inet, sk) \ argument
21 #define TP_STORE_ADDR_PORTS(__entry, inet, sk) \ argument
39 #define TP_STORE_ADDR_PORTS(__entry, inet, sk) \ argument
/include/net/netfilter/
Dnf_tproxy.h11 static inline bool nf_tproxy_sk_is_transparent(struct sock *sk) in nf_tproxy_sk_is_transparent()
28 static inline void nf_tproxy_assign_sock(struct sk_buff *skb, struct sock *sk) in nf_tproxy_assign_sock()
/include/crypto/
Dif_alg.h28 struct sock sk; member
98 struct sock *sk; member
174 static inline struct alg_sock *alg_sk(struct sock *sk) in alg_sk()
185 static inline int af_alg_sndbuf(struct sock *sk) in af_alg_sndbuf()
200 static inline bool af_alg_writable(struct sock *sk) in af_alg_writable()
211 static inline int af_alg_rcvbuf(struct sock *sk) in af_alg_rcvbuf()
226 static inline bool af_alg_readable(struct sock *sk) in af_alg_readable()
/include/net/sctp/
Dsctp.h398 static inline void sctp_skb_set_owner_r(struct sk_buff *skb, struct sock *sk) in sctp_skb_set_owner_r()
513 #define sctp_style(sk, style) __sctp_style((sk), (SCTP_SOCKET_##style)) argument
514 static inline int __sctp_style(const struct sock *sk, in __sctp_style()
529 #define sctp_sstate(sk, state) __sctp_sstate((sk), (SCTP_SS_##state)) argument
530 static inline int __sctp_sstate(const struct sock *sk, in __sctp_sstate()
613 static inline bool sctp_newsk_ready(const struct sock *sk) in sctp_newsk_ready()
618 static inline void sctp_sock_set_nodelay(struct sock *sk) in sctp_sock_set_nodelay()

1234