Searched refs:sk (Results 1 - 25 of 948) sorted by relevance

1234567891011>>

/linux-master/net/x25/
H A Dx25_timer.c27 void x25_init_timers(struct sock *sk) argument
29 struct x25_sock *x25 = x25_sk(sk);
34 sk->sk_timer.function = x25_heartbeat_expiry;
37 void x25_start_heartbeat(struct sock *sk) argument
39 mod_timer(&sk->sk_timer, jiffies + 5 * HZ);
42 void x25_stop_heartbeat(struct sock *sk) argument
44 del_timer(&sk->sk_timer);
47 void x25_start_t2timer(struct sock *sk) argument
49 struct x25_sock *x25 = x25_sk(sk);
54 void x25_start_t21timer(struct sock *sk) argument
61 x25_start_t22timer(struct sock *sk) argument
68 x25_start_t23timer(struct sock *sk) argument
75 x25_stop_timer(struct sock *sk) argument
80 x25_display_timer(struct sock *sk) argument
92 struct sock *sk = from_timer(sk, t, sk_timer); local
131 x25_do_timer_expiry(struct sock * sk) argument
160 struct sock *sk = &x25->sk; local
[all...]
/linux-master/include/net/
H A Dtimewait_sock.h18 int (*twsk_unique)(struct sock *sk,
20 void (*twsk_destructor)(struct sock *sk);
23 static inline int twsk_unique(struct sock *sk, struct sock *sktw, void *twp) argument
25 if (sk->sk_prot->twsk_prot->twsk_unique != NULL)
26 return sk->sk_prot->twsk_prot->twsk_unique(sk, sktw, twp);
30 static inline void twsk_destructor(struct sock *sk) argument
32 if (sk->sk_prot->twsk_prot->twsk_destructor != NULL)
33 sk->sk_prot->twsk_prot->twsk_destructor(sk);
[all...]
H A Dllc_c_ev.h128 typedef int (*llc_conn_ev_t)(struct sock *sk, struct sk_buff *skb);
129 typedef int (*llc_conn_ev_qfyr_t)(struct sock *sk, struct sk_buff *skb);
131 int llc_conn_ev_conn_req(struct sock *sk, struct sk_buff *skb);
132 int llc_conn_ev_data_req(struct sock *sk, struct sk_buff *skb);
133 int llc_conn_ev_disc_req(struct sock *sk, struct sk_buff *skb);
134 int llc_conn_ev_rst_req(struct sock *sk, struct sk_buff *skb);
135 int llc_conn_ev_local_busy_detected(struct sock *sk, struct sk_buff *skb);
136 int llc_conn_ev_local_busy_cleared(struct sock *sk, struct sk_buff *skb);
137 int llc_conn_ev_rx_bad_pdu(struct sock *sk, struct sk_buff *skb);
138 int llc_conn_ev_rx_disc_cmd_pbit_set_x(struct sock *sk, struc
218 llc_conn_space(struct sock *sk, struct sk_buff *skb) argument
[all...]
H A Dllc_c_ac.h97 typedef int (*llc_conn_action_t)(struct sock *sk, struct sk_buff *skb);
99 int llc_conn_ac_clear_remote_busy(struct sock *sk, struct sk_buff *skb);
100 int llc_conn_ac_conn_ind(struct sock *sk, struct sk_buff *skb);
101 int llc_conn_ac_conn_confirm(struct sock *sk, struct sk_buff *skb);
102 int llc_conn_ac_data_ind(struct sock *sk, struct sk_buff *skb);
103 int llc_conn_ac_disc_ind(struct sock *sk, struct sk_buff *skb);
104 int llc_conn_ac_rst_ind(struct sock *sk, struct sk_buff *skb);
105 int llc_conn_ac_rst_confirm(struct sock *sk, struct sk_buff *skb);
106 int llc_conn_ac_clear_remote_busy_if_f_eq_1(struct sock *sk,
108 int llc_conn_ac_stop_rej_tmr_if_data_flag_eq_2(struct sock *sk,
[all...]
H A Dsock.h260 * @sk_napi_id: id of the last napi context to receive data for sk
428 void (*sk_data_ready)(struct sock *sk);
480 struct sk_buff* (*sk_validate_xmit_skb)(struct sock *sk,
533 void (*sk_state_change)(struct sock *sk);
534 void (*sk_write_space)(struct sock *sk);
535 void (*sk_error_report)(struct sock *sk);
536 int (*sk_backlog_rcv)(struct sock *sk,
538 void (*sk_destruct)(struct sock *sk);
562 * when sk_user_data's sk is added to the bpf's reuseport_array.
576 * @sk
578 sk_user_data_is_nocopy(const struct sock *sk) argument
596 __locked_read_sk_user_data_with_flags(const struct sock *sk, uintptr_t flags) argument
619 __rcu_dereference_sk_user_data_with_flags(const struct sock *sk, uintptr_t flags) argument
646 sock_net(const struct sock *sk) argument
652 sock_net_set(struct sock *sk, struct net *net) argument
670 sk_peek_offset(const struct sock *sk, int flags) argument
679 sk_peek_offset_bwd(struct sock *sk, int val) argument
689 sk_peek_offset_fwd(struct sock *sk, int val) argument
722 sk_next(const struct sock *sk) argument
727 sk_nulls_next(const struct sock *sk) argument
735 sk_unhashed(const struct sock *sk) argument
740 sk_hashed(const struct sock *sk) argument
750 __sk_del_node(struct sock *sk) argument
756 __sk_del_node_init(struct sock *sk) argument
772 sock_hold(struct sock *sk) argument
780 __sock_put(struct sock *sk) argument
785 sk_del_node_init(struct sock *sk) argument
798 __sk_nulls_del_node_init_rcu(struct sock *sk) argument
807 sk_nulls_del_node_init_rcu(struct sock *sk) argument
819 __sk_add_node(struct sock *sk, struct hlist_head *list) argument
824 sk_add_node(struct sock *sk, struct hlist_head *list) argument
830 sk_add_node_rcu(struct sock *sk, struct hlist_head *list) argument
840 sk_add_node_tail_rcu(struct sock *sk, struct hlist_head *list) argument
846 __sk_nulls_add_node_rcu(struct sock *sk, struct hlist_nulls_head *list) argument
851 __sk_nulls_add_node_tail_rcu(struct sock *sk, struct hlist_nulls_head *list) argument
856 sk_nulls_add_node_rcu(struct sock *sk, struct hlist_nulls_head *list) argument
862 __sk_del_bind_node(struct sock *sk) argument
867 sk_add_bind_node(struct sock *sk, struct hlist_head *list) argument
905 sk_user_ns(const struct sock *sk) argument
956 sock_set_flag(struct sock *sk, enum sock_flags flag) argument
961 sock_reset_flag(struct sock *sk, enum sock_flags flag) argument
966 sock_valbool_flag(struct sock *sk, enum sock_flags bit, int valbool) argument
975 sock_flag(const struct sock *sk, enum sock_flags flag) argument
999 sk_gfp_mask(const struct sock *sk, gfp_t gfp_mask) argument
1004 sk_acceptq_removed(struct sock *sk) argument
1009 sk_acceptq_added(struct sock *sk) argument
1018 sk_acceptq_is_full(const struct sock *sk) argument
1026 sk_stream_min_wspace(const struct sock *sk) argument
1031 sk_stream_wspace(const struct sock *sk) argument
1036 sk_wmem_queued_add(struct sock *sk, int val) argument
1041 sk_forward_alloc_add(struct sock *sk, int val) argument
1050 __sk_add_backlog(struct sock *sk, struct sk_buff *skb) argument
1069 sk_rcvqueues_full(const struct sock *sk, unsigned int limit) argument
1077 sk_add_backlog(struct sock *sk, struct sk_buff *skb, unsigned int limit) argument
1101 sk_backlog_rcv(struct sock *sk, struct sk_buff *skb) argument
1112 sk_incoming_cpu_update(struct sock *sk) argument
1121 sock_rps_save_rxhash(struct sock *sk, const struct sk_buff *skb) argument
1133 sock_rps_reset_rxhash(struct sock *sk) argument
1166 sk_flush_backlog(struct sock *sk) argument
1189 sk_prot_clear_nulls(struct sock *sk, int size) argument
1328 sk_forward_alloc_get(const struct sock *sk) argument
1337 __sk_stream_memory_free(const struct sock *sk, int wake) argument
1347 sk_stream_memory_free(const struct sock *sk) argument
1352 __sk_stream_is_writeable(const struct sock *sk, int wake) argument
1358 sk_stream_is_writeable(const struct sock *sk) argument
1363 sk_under_cgroup_hierarchy(struct sock *sk, struct cgroup *ancestor) argument
1374 sk_has_memory_pressure(const struct sock *sk) argument
1379 sk_under_global_memory_pressure(const struct sock *sk) argument
1385 sk_under_memory_pressure(const struct sock *sk) argument
1404 sk_memory_allocated(const struct sock *sk) argument
1414 sk_memory_allocated_add(struct sock *sk, int amt) argument
1428 sk_memory_allocated_sub(struct sock *sk, int amt) argument
1443 sk_sockets_allocated_dec(struct sock *sk) argument
1449 sk_sockets_allocated_inc(struct sock *sk) argument
1456 sk_sockets_allocated_read_positive(struct sock *sk) argument
1511 __sk_prot_rehash(struct sock *sk) argument
1557 sk_prot_mem_limits(const struct sock *sk, int index) argument
1567 sk_has_account(struct sock *sk) argument
1573 sk_wmem_schedule(struct sock *sk, int size) argument
1584 sk_rmem_schedule(struct sock *sk, struct sk_buff *skb, int size) argument
1595 sk_unused_reserved_mem(const struct sock *sk) argument
1608 sk_mem_reclaim(struct sock *sk) argument
1621 sk_mem_reclaim_final(struct sock *sk) argument
1627 sk_mem_charge(struct sock *sk, int size) argument
1634 sk_mem_uncharge(struct sock *sk, int size) argument
1661 lockdep_sock_is_held(const struct sock *sk) argument
1669 lock_sock(struct sock *sk) argument
1700 lock_sock_fast(struct sock *sk) argument
1709 lock_sock_fast_nested(struct sock *sk) argument
1728 release_sock(sk); variable
1755 sock_owned_by_me(const struct sock *sk) argument
1762 sock_not_owned_by_me(const struct sock *sk) argument
1769 sock_owned_by_user(const struct sock *sk) argument
1775 sock_owned_by_user_nocheck(const struct sock *sk) argument
1780 sock_release_ownership(struct sock *sk) argument
1792 struct sock *sk = (struct sock *)csk; local
1838 sock_alloc_send_skb(struct sock *sk, unsigned long size, int noblock, int *errcode) argument
1850 sock_replace_proto(struct sock *sk, struct proto *proto) argument
1863 sockcm_init(struct sockcm_cookie *sockc, const struct sock *sk) argument
1945 sock_put(struct sock *sk) argument
1957 sk_receive_skb(struct sock *sk, struct sk_buff *skb, const int nested) argument
1963 sk_tx_queue_set(struct sock *sk, int tx_queue) argument
1976 sk_tx_queue_clear(struct sock *sk) argument
1984 sk_tx_queue_get(const struct sock *sk) argument
1998 __sk_rx_queue_set(struct sock *sk, const struct sk_buff *skb, bool force_set) argument
2013 sk_rx_queue_set(struct sock *sk, const struct sk_buff *skb) argument
2018 sk_rx_queue_update(struct sock *sk, const struct sk_buff *skb) argument
2023 sk_rx_queue_clear(struct sock *sk) argument
2030 sk_rx_queue_get(const struct sock *sk) argument
2044 sk_set_socket(struct sock *sk, struct socket *sock) argument
2049 sk_sleep(struct sock *sk) argument
2061 sock_orphan(struct sock *sk) argument
2070 sock_graft(struct sock *sk, struct socket *parent) argument
2086 sock_net_uid(const struct net *net, const struct sock *sk) argument
2098 sk_set_txhash(struct sock *sk) argument
2104 sk_rethink_txhash(struct sock *sk) argument
2114 __sk_dst_get(const struct sock *sk) argument
2121 sk_dst_get(const struct sock *sk) argument
2133 __dst_negative_advice(struct sock *sk) argument
2148 dst_negative_advice(struct sock *sk) argument
2155 __sk_dst_set(struct sock *sk, struct dst_entry *dst) argument
2168 sk_dst_set(struct sock *sk, struct dst_entry *dst) argument
2179 __sk_dst_reset(struct sock *sk) argument
2185 sk_dst_reset(struct sock *sk) argument
2194 sk_dst_confirm(struct sock *sk) argument
2203 struct sock *sk = skb->sk; local
2213 sk_can_gso(const struct sock *sk) argument
2220 sk_gso_disable(struct sock *sk) argument
2226 skb_do_copy_data_nocache(struct sock *sk, struct sk_buff *skb, struct iov_iter *from, char *to, int copy, int offset) argument
2244 skb_add_data_nocache(struct sock *sk, struct sk_buff *skb, struct iov_iter *from, int copy) argument
2257 skb_copy_to_page_nocache(struct sock *sk, struct iov_iter *from, struct sk_buff *skb, struct page *page, int off, int copy) argument
2281 sk_wmem_alloc_get(const struct sock *sk) argument
2292 sk_rmem_alloc_get(const struct sock *sk) argument
2303 sk_has_allocations(const struct sock *sk) argument
2366 skb_set_hash_from_sk(struct sk_buff *skb, struct sock *sk) argument
2387 skb_set_owner_r(struct sk_buff *skb, struct sock *sk) argument
2396 skb_set_owner_sk_safe(struct sk_buff *skb, struct sock *sk) argument
2407 skb_clone_and_charge_r(struct sk_buff *skb, struct sock *sk) argument
2445 sock_queue_rcv_skb(struct sock *sk, struct sk_buff *skb) argument
2457 sock_error(struct sock *sk) argument
2473 sock_wspace(struct sock *sk) argument
2489 sk_set_bit(int nr, struct sock *sk) argument
2498 sk_clear_bit(int nr, struct sock *sk) argument
2507 sk_wake_async(const struct sock *sk, int how, int band) argument
2526 sk_stream_moderate_sndbuf(struct sock *sk) argument
2555 sk_page_frag(struct sock *sk) argument
2568 sock_writeable(const struct sock *sk) argument
2583 sock_rcvtimeo(const struct sock *sk, bool noblock) argument
2588 sock_sndtimeo(const struct sock *sk, bool noblock) argument
2593 sock_rcvlowat(const struct sock *sk, int waitall, int len) argument
2626 sock_skb_set_dropcount(const struct sock *sk, struct sk_buff *skb) argument
2632 sk_drops_add(struct sock *sk, const struct sk_buff *skb) argument
2639 sock_read_timestamp(struct sock *sk) argument
2656 sock_write_timestamp(struct sock *sk, ktime_t kt) argument
2673 sock_recv_timestamp(struct msghdr *msg, struct sock *sk, struct sk_buff *skb) argument
2701 sock_recv_cmsgs(struct msghdr *msg, struct sock *sk, struct sk_buff *skb) argument
2730 _sock_tx_timestamp(struct sock *sk, __u16 tsflags, __u8 *tx_flags, __u32 *tskey) argument
2743 sock_tx_timestamp(struct sock *sk, __u16 tsflags, __u8 *tx_flags) argument
2755 sk_is_inet(const struct sock *sk) argument
2762 sk_is_tcp(const struct sock *sk) argument
2769 sk_is_udp(const struct sock *sk) argument
2776 sk_is_stream_unix(const struct sock *sk) argument
2789 sk_eat_skb(struct sock *sk, struct sk_buff *skb) argument
2808 sk_fullsock(const struct sock *sk) argument
2814 sk_is_refcounted(struct sock *sk) argument
2828 struct sock *sk = skb->sk; local
2847 sk_listener(const struct sock *sk) argument
2884 sk_get_wmem0(const struct sock *sk, const struct proto *proto) argument
2893 sk_get_rmem0(const struct sock *sk, const struct proto *proto) argument
2906 sk_pacing_shift_update(struct sock *sk, int val) argument
2918 sk_dev_equal_l3scope(struct sock *sk, int dif) argument
2959 sk_is_readable(struct sock *sk) argument
[all...]
H A Dinet_connection_sock.h36 int (*queue_xmit)(struct sock *sk, struct sk_buff *skb, struct flowi *fl);
37 void (*send_check)(struct sock *sk, struct sk_buff *skb);
38 int (*rebuild_header)(struct sock *sk);
39 void (*sk_rx_dst_set)(struct sock *sk, const struct sk_buff *skb);
40 int (*conn_request)(struct sock *sk, struct sk_buff *skb);
41 struct sock *(*syn_recv_sock)(const struct sock *sk, struct sk_buff *skb,
48 int (*setsockopt)(struct sock *sk, int level, int optname,
50 int (*getsockopt)(struct sock *sk, int level, int optname,
52 void (*addr2sockaddr)(struct sock *sk, struct sockaddr *);
53 void (*mtu_reduced)(struct sock *sk);
150 inet_csk(const struct sock *sk) argument
155 inet_csk_ca(const struct sock *sk) argument
180 inet_csk_schedule_ack(struct sock *sk) argument
185 inet_csk_ack_scheduled(const struct sock *sk) argument
190 inet_csk_delack_init(struct sock *sk) argument
198 inet_csk_clear_xmit_timer(struct sock *sk, const int what) argument
221 inet_csk_reset_xmit_timer(struct sock *sk, const int what, unsigned long when, const unsigned long max_when) argument
275 inet_csk_reqsk_queue_added(struct sock *sk) argument
280 inet_csk_reqsk_queue_len(const struct sock *sk) argument
285 inet_csk_reqsk_queue_is_full(const struct sock *sk) argument
301 inet_csk_prepare_for_destroy_sock(struct sock *sk) argument
314 inet_csk_listen_poll(const struct sock *sk) argument
331 inet_csk_enter_pingpong_mode(struct sock *sk) argument
337 inet_csk_exit_pingpong_mode(struct sock *sk) argument
342 inet_csk_in_pingpong_mode(struct sock *sk) argument
348 inet_csk_inc_pingpong_cnt(struct sock *sk) argument
356 inet_csk_has_ulp(const struct sock *sk) argument
361 inet_init_csk_locks(struct sock *sk) argument
[all...]
/linux-master/net/netrom/
H A Dnr_timer.c35 void nr_init_timers(struct sock *sk) argument
37 struct nr_sock *nr = nr_sk(sk);
45 sk->sk_timer.function = nr_heartbeat_expiry;
48 void nr_start_t1timer(struct sock *sk) argument
50 struct nr_sock *nr = nr_sk(sk);
52 sk_reset_timer(sk, &nr->t1timer, jiffies + nr->t1);
55 void nr_start_t2timer(struct sock *sk) argument
57 struct nr_sock *nr = nr_sk(sk);
59 sk_reset_timer(sk, &nr->t2timer, jiffies + nr->t2);
62 void nr_start_t4timer(struct sock *sk) argument
69 nr_start_idletimer(struct sock *sk) argument
77 nr_start_heartbeat(struct sock *sk) argument
82 nr_stop_t1timer(struct sock *sk) argument
87 nr_stop_t2timer(struct sock *sk) argument
92 nr_stop_t4timer(struct sock *sk) argument
97 nr_stop_idletimer(struct sock *sk) argument
102 nr_stop_heartbeat(struct sock *sk) argument
107 nr_t1timer_running(struct sock *sk) argument
114 struct sock *sk = from_timer(sk, t, sk_timer); local
155 struct sock *sk = &nr->sock; local
169 struct sock *sk = &nr->sock; local
180 struct sock *sk = &nr->sock; local
209 struct sock *sk = &nr->sock; local
[all...]
/linux-master/samples/bpf/
H A Dsock_flags.bpf.c7 int bpf_prog1(struct bpf_sock *sk) argument
15 bpf_trace_printk(fmt, sizeof(fmt), sk->family, sk->type, sk->protocol);
21 if (sk->family == AF_INET6 &&
22 sk->type == SOCK_DGRAM &&
23 sk->protocol == IPPROTO_ICMPV6)
30 int bpf_prog2(struct bpf_sock *sk) argument
34 bpf_trace_printk(fmt, sizeof(fmt), sk->family, sk
[all...]
/linux-master/include/net/phonet/
H A Dgprs.h18 int pep_writeable(struct sock *sk);
19 int pep_write(struct sock *sk, struct sk_buff *skb);
20 struct sk_buff *pep_read(struct sock *sk);
22 int gprs_attach(struct sock *sk);
23 void gprs_detach(struct sock *sk);
/linux-master/net/dccp/
H A Dqpolicy.c15 static void qpolicy_simple_push(struct sock *sk, struct sk_buff *skb) argument
17 skb_queue_tail(&sk->sk_write_queue, skb);
20 static bool qpolicy_simple_full(struct sock *sk) argument
22 return dccp_sk(sk)->dccps_tx_qlen &&
23 sk->sk_write_queue.qlen >= dccp_sk(sk)->dccps_tx_qlen;
26 static struct sk_buff *qpolicy_simple_top(struct sock *sk) argument
28 return skb_peek(&sk->sk_write_queue);
36 static struct sk_buff *qpolicy_prio_best_skb(struct sock *sk) argument
40 skb_queue_walk(&sk
46 qpolicy_prio_worst_skb(struct sock *sk) argument
56 qpolicy_prio_full(struct sock *sk) argument
95 dccp_qpolicy_push(struct sock *sk, struct sk_buff *skb) argument
100 dccp_qpolicy_full(struct sock *sk) argument
105 dccp_qpolicy_drop(struct sock *sk, struct sk_buff *skb) argument
113 dccp_qpolicy_top(struct sock *sk) argument
118 dccp_qpolicy_pop(struct sock *sk) argument
130 dccp_qpolicy_param_ok(struct sock *sk, __be32 param) argument
[all...]
H A Dinput.c22 static void dccp_enqueue_skb(struct sock *sk, struct sk_buff *skb) argument
25 __skb_queue_tail(&sk->sk_receive_queue, skb);
26 skb_set_owner_r(skb, sk);
27 sk->sk_data_ready(sk);
30 static void dccp_fin(struct sock *sk, struct sk_buff *skb) argument
38 sk->sk_shutdown = SHUTDOWN_MASK;
39 sock_set_flag(sk, SOCK_DONE);
40 dccp_enqueue_skb(sk, skb);
43 static int dccp_rcv_close(struct sock *sk, struc argument
89 dccp_rcv_closereq(struct sock *sk, struct sk_buff *skb) argument
145 dccp_rcv_reset(struct sock *sk, struct sk_buff *skb) argument
159 dccp_handle_ackvec_processing(struct sock *sk, struct sk_buff *skb) argument
170 dccp_deliver_input_to_ccids(struct sock *sk, struct sk_buff *skb) argument
185 dccp_check_seqno(struct sock *sk, struct sk_buff *skb) argument
283 __dccp_rcv_established(struct sock *sk, struct sk_buff *skb, const struct dccp_hdr *dh, const unsigned int len) argument
364 dccp_rcv_established(struct sock *sk, struct sk_buff *skb, const struct dccp_hdr *dh, const unsigned int len) argument
384 dccp_rcv_request_sent_state_process(struct sock *sk, struct sk_buff *skb, const struct dccp_hdr *dh, const unsigned int len) argument
517 dccp_rcv_respond_partopen_state_process(struct sock *sk, struct sk_buff *skb, const struct dccp_hdr *dh, const unsigned int len) argument
571 dccp_rcv_state_process(struct sock *sk, struct sk_buff *skb, struct dccp_hdr *dh, unsigned int len) argument
724 dccp_sample_rtt(struct sock *sk, long delta) argument
[all...]
H A Dtimer.c20 static void dccp_write_err(struct sock *sk) argument
22 sk->sk_err = READ_ONCE(sk->sk_err_soft) ? : ETIMEDOUT;
23 sk_error_report(sk);
25 dccp_send_reset(sk, DCCP_RESET_CODE_ABORTED);
26 dccp_done(sk);
31 static int dccp_write_timeout(struct sock *sk) argument
33 const struct inet_connection_sock *icsk = inet_csk(sk);
36 if (sk->sk_state == DCCP_REQUESTING || sk
83 dccp_retransmit_timer(struct sock *sk) argument
128 struct sock *sk = &icsk->icsk_inet.sk; local
163 struct sock *sk = from_timer(sk, t, sk_timer); local
174 struct sock *sk = &icsk->icsk_inet.sk; local
225 struct sock *sk = &dp->dccps_inet_connection.icsk_inet.sk; local
243 dccp_init_xmit_timers(struct sock *sk) argument
[all...]
/linux-master/net/ipv4/
H A Dtcp_timer.c26 static u32 tcp_clamp_rto_to_user_timeout(const struct sock *sk) argument
28 struct inet_connection_sock *icsk = inet_csk(sk);
29 const struct tcp_sock *tp = tcp_sk(sk);
48 u32 tcp_clamp_probe0_to_user_timeout(const struct sock *sk, u32 when) argument
50 struct inet_connection_sock *icsk = inet_csk(sk);
69 * @sk: The socket the error has appeared on.
74 static void tcp_write_err(struct sock *sk) argument
76 WRITE_ONCE(sk->sk_err, READ_ONCE(sk->sk_err_soft) ? : ETIMEDOUT);
77 sk_error_report(sk);
108 tcp_out_of_resources(struct sock *sk, bool do_reset) argument
150 tcp_orphan_retries(struct sock *sk, bool alive) argument
166 tcp_mtu_probing(struct inet_connection_sock *icsk, struct sock *sk) argument
188 tcp_model_timeout(struct sock *sk, unsigned int boundary, unsigned int rto_base) argument
215 retransmits_timed_out(struct sock *sk, unsigned int boundary, unsigned int timeout) argument
243 tcp_write_timeout(struct sock *sk) argument
308 tcp_delack_timer_handler(struct sock *sk) argument
363 struct sock *sk = &icsk->icsk_inet.sk; local
378 tcp_probe_timer(struct sock *sk) argument
428 tcp_update_rto_stats(struct sock *sk) argument
445 tcp_fastopen_synack_timer(struct sock *sk, struct request_sock *req) argument
480 tcp_rtx_probe0_timed_out(const struct sock *sk, const struct sk_buff *skb, u32 rtx_delta) argument
506 tcp_retransmit_timer(struct sock *sk) argument
667 tcp_write_timer_handler(struct sock *sk) argument
706 struct sock *sk = &icsk->icsk_inet.sk; local
728 tcp_set_keepalive(struct sock *sk, int val) argument
743 struct sock *sk = from_timer(sk, t, sk_timer); local
831 struct sock *sk = (struct sock *)tp; local
855 tcp_init_xmit_timers(struct sock *sk) argument
[all...]
/linux-master/net/rose/
H A Drose_timer.c32 void rose_start_heartbeat(struct sock *sk) argument
34 sk_stop_timer(sk, &sk->sk_timer);
36 sk->sk_timer.function = rose_heartbeat_expiry;
37 sk->sk_timer.expires = jiffies + 5 * HZ;
39 sk_reset_timer(sk, &sk->sk_timer, sk->sk_timer.expires);
42 void rose_start_t1timer(struct sock *sk) argument
44 struct rose_sock *rose = rose_sk(sk);
54 rose_start_t2timer(struct sock *sk) argument
66 rose_start_t3timer(struct sock *sk) argument
78 rose_start_hbtimer(struct sock *sk) argument
90 rose_start_idletimer(struct sock *sk) argument
104 rose_stop_heartbeat(struct sock *sk) argument
109 rose_stop_timer(struct sock *sk) argument
114 rose_stop_idletimer(struct sock *sk) argument
121 struct sock *sk = from_timer(sk, t, sk_timer); local
162 struct sock *sk = &rose->sock; local
192 struct sock *sk = &rose->sock; local
[all...]
H A Drose_in.c37 static int rose_state1_machine(struct sock *sk, struct sk_buff *skb, int frametype) argument
39 struct rose_sock *rose = rose_sk(sk);
43 rose_stop_timer(sk);
44 rose_start_idletimer(sk);
51 sk->sk_state = TCP_ESTABLISHED;
52 if (!sock_flag(sk, SOCK_DEAD))
53 sk->sk_state_change(sk);
57 rose_write_internal(sk, ROSE_CLEAR_CONFIRMATION);
58 rose_disconnect(sk, ECONNREFUSE
74 rose_state2_machine(struct sock *sk, struct sk_buff *skb, int frametype) argument
102 rose_state3_machine(struct sock *sk, struct sk_buff *skb, int frametype, int ns, int nr, int q, int d, int m) argument
213 rose_state4_machine(struct sock *sk, struct sk_buff *skb, int frametype) argument
251 rose_state5_machine(struct sock *sk, struct sk_buff *skb, int frametype) argument
263 rose_process_rx_frame(struct sock *sk, struct sk_buff *skb) argument
[all...]
/linux-master/net/smc/
H A Dsmc_close.c41 struct sock *sk; local
44 while ((sk = smc_accept_dequeue(parent, NULL)))
45 smc_close_non_accepted(sk);
52 struct sock *sk = &smc->sk; local
64 add_wait_queue(sk_sleep(sk), &wait);
68 rc = sk_wait_event(sk, &timeout,
70 READ_ONCE(sk->sk_err) == ECONNABORTED ||
71 READ_ONCE(sk->sk_err) == ECONNRESET ||
77 remove_wait_queue(sk_sleep(sk),
116 struct sock *sk = &smc->sk; local
130 struct sock *sk = &smc->sk; local
198 struct sock *sk = &smc->sk; local
316 struct sock *sk = &smc->sk; local
364 struct sock *sk = &smc->sk; local
450 struct sock *sk = &smc->sk; local
[all...]
/linux-master/net/core/
H A Dstream.c26 * @sk: socket
30 void sk_stream_write_space(struct sock *sk) argument
32 struct socket *sock = sk->sk_socket;
35 if (__sk_stream_is_writeable(sk, 1) && sock) {
39 wq = rcu_dereference(sk->sk_wq);
43 if (wq && wq->fasync_list && !(sk->sk_shutdown & SEND_SHUTDOWN))
51 * @sk: sock to wait on
56 int sk_stream_wait_connect(struct sock *sk, long *timeo_p) argument
63 int err = sock_error(sk);
66 if ((1 << sk
90 sk_stream_closing(const struct sock *sk) argument
96 sk_stream_wait_close(struct sock *sk, long timeout) argument
118 sk_stream_wait_memory(struct sock *sk, long *timeo_p) argument
186 sk_stream_error(struct sock *sk, int flags, int err) argument
196 sk_stream_kill_queues(struct sock *sk) argument
[all...]
/linux-master/tools/testing/selftests/bpf/progs/
H A Dtcp_ca_incompl_cong_ops.c10 static inline struct tcp_sock *tcp_sk(const struct sock *sk) argument
12 return (struct tcp_sock *)sk;
16 __u32 BPF_PROG(incompl_cong_ops_ssthresh, struct sock *sk) argument
18 return tcp_sk(sk)->snd_ssthresh;
22 __u32 BPF_PROG(incompl_cong_ops_undo_cwnd, struct sock *sk) argument
24 return tcp_sk(sk)->snd_cwnd;
H A Dkfunc_call_test_subprog.c11 struct bpf_sock *sk = skb->sk; local
14 if (!sk)
17 sk = bpf_sk_fullsock(sk);
18 if (!sk)
26 sk_state_res = bpf_kfunc_call_test3((struct sock *)sk)->__sk_common.skc_state;
28 return (__u32)bpf_kfunc_call_test1((struct sock *)sk, 1, 2, 3, 4);
H A Dsock_iter_batch.c26 struct sock *sk = (struct sock *)ctx->sk_common; local
32 if (!sk)
35 sk = bpf_core_cast(sk, struct sock);
36 if (sk->sk_family != AF_INET6 ||
37 sk->sk_state != TCP_LISTEN ||
38 !ipv6_addr_loopback(&sk->sk_v6_rcv_saddr))
41 if (sk->sk_num == ports[0])
43 else if (sk->sk_num == ports[1])
49 net = sk
64 struct sock *sk = (struct sock *)ctx->udp_sk; local
[all...]
/linux-master/net/bluetooth/rfcomm/
H A Dsock.c43 static void rfcomm_sock_close(struct sock *sk);
44 static void rfcomm_sock_kill(struct sock *sk);
52 struct sock *sk = d->owner; local
53 if (!sk)
56 atomic_add(skb->len, &sk->sk_rmem_alloc);
57 skb_queue_tail(&sk->sk_receive_queue, skb);
58 sk->sk_data_ready(sk);
60 if (atomic_read(&sk->sk_rmem_alloc) >= sk
66 struct sock *sk = d->owner, *parent; local
108 struct sock *sk = NULL; local
129 struct sock *sk = NULL, *sk1 = NULL; local
153 rfcomm_sock_destruct(struct sock *sk) argument
175 struct sock *sk; local
192 rfcomm_sock_kill(struct sock *sk) argument
205 __rfcomm_sock_close(struct sock *sk) argument
232 rfcomm_sock_close(struct sock *sk) argument
239 rfcomm_sock_init(struct sock *sk, struct sock *parent) argument
275 struct sock *sk; local
308 struct sock *sk; local
330 struct sock *sk = sock->sk; local
377 struct sock *sk = sock->sk; local
424 struct sock *sk = sock->sk; local
475 struct sock *sk = sock->sk, *nsk; local
535 struct sock *sk = sock->sk; local
557 struct sock *sk = sock->sk; local
597 struct sock *sk = sock->sk; local
622 struct sock *sk = sock->sk; local
664 struct sock *sk = sock->sk; local
728 struct sock *sk = sock->sk; local
803 struct sock *sk = sock->sk; local
888 struct sock *sk = sock->sk; local
914 struct sock *sk = sock->sk; local
935 struct sock *sk, *parent; local
985 struct sock *sk; local
[all...]
/linux-master/net/bluetooth/
H A Dsco.c49 struct sock *sk; member in struct:sco_conn
59 static void sco_sock_close(struct sock *sk);
60 static void sco_sock_kill(struct sock *sk);
63 #define sco_pi(sk) ((struct sco_pinfo *) sk)
83 struct sock *sk; local
86 sk = conn->sk;
87 if (sk)
88 sock_hold(sk);
103 sco_sock_set_timer(struct sock *sk, long timeout) argument
113 sco_sock_clear_timer(struct sock *sk) argument
156 sco_chan_del(struct sock *sk, int err) argument
184 struct sock *sk; local
213 __sco_chan_add(struct sco_conn *conn, struct sock *sk, struct sock *parent) argument
225 sco_chan_add(struct sco_conn *conn, struct sock *sk, struct sock *parent) argument
240 sco_connect(struct sock *sk) argument
308 sco_send_frame(struct sock *sk, struct sk_buff *skb) argument
326 struct sock *sk; local
350 struct sock *sk; local
368 struct sock *sk = NULL, *sk1 = NULL; local
390 sco_sock_destruct(struct sock *sk) argument
400 struct sock *sk; local
417 sco_sock_kill(struct sock *sk) argument
430 __sco_sock_close(struct sock *sk) argument
466 sco_sock_close(struct sock *sk) argument
474 sco_sock_init(struct sock *sk, struct sock *parent) argument
494 struct sock *sk; local
516 struct sock *sk; local
539 struct sock *sk = sock->sk; local
572 struct sock *sk = sock->sk; local
607 struct sock *sk = sock->sk; local
649 struct sock *sk = sock->sk, *ch; local
704 struct sock *sk = sock->sk; local
721 struct sock *sk = sock->sk; local
804 struct sock *sk = sock->sk; local
826 struct sock *sk = sock->sk; local
964 struct sock *sk = sock->sk; local
1025 struct sock *sk = sock->sk; local
1206 struct sock *sk = sock->sk; local
1236 struct sock *sk = sock->sk; local
1261 struct sock *sk = conn->sk; local
1320 struct sock *sk; local
1398 struct sock *sk; local
[all...]
H A Daf_bluetooth.c71 void bt_sock_reclassify_lock(struct sock *sk, int proto) argument
73 BUG_ON(!sk);
74 BUG_ON(!sock_allow_reclassification(sk));
76 sock_lock_init_class_and_name(sk,
134 bt_sock_reclassify_lock(sock->sk, proto);
146 struct sock *sk; local
148 sk = sk_alloc(net, PF_BLUETOOTH, prio, prot, kern);
149 if (!sk)
152 sock_init_data(sock, sk);
153 INIT_LIST_HEAD(&bt_sk(sk)
172 bt_sock_link(struct bt_sock_list *l, struct sock *sk) argument
180 bt_sock_unlink(struct bt_sock_list *l, struct sock *sk) argument
188 bt_accept_enqueue(struct sock *parent, struct sock *sk, bool bh) argument
230 bt_accept_unlink(struct sock *sk) argument
244 struct sock *sk; local
301 struct sock *sk = sock->sk; local
353 bt_sock_data_wait(struct sock *sk, long timeo) argument
385 struct sock *sk = sock->sk; local
490 struct sock *sk; local
506 struct sock *sk = sock->sk; local
546 struct sock *sk = sock->sk; local
586 bt_sock_wait_state(struct sock *sk, int state, unsigned long timeo) argument
622 bt_sock_wait_ready(struct sock *sk, unsigned int msg_flags) argument
700 struct sock *sk = sk_entry(v); local
[all...]
/linux-master/tools/testing/selftests/net/tcp_ao/
H A Dsetsockopt-closed.c10 static void make_listen(int sk) argument
15 if (bind(sk, (struct sockaddr *)&addr, sizeof(addr)) < 0)
17 if (listen(sk, 1))
21 static void test_vefify_ao_info(int sk, struct tcp_ao_info_opt *info, argument
27 if (getsockopt(sk, IPPROTO_TCP, TCP_AO_INFO, &tmp, &len))
56 static void __setsockopt_checked(int sk, int optname, bool get, argument
69 ret = getsockopt(sk, IPPROTO_TCP, optname, optval, len);
71 ret = setsockopt(sk, IPPROTO_TCP, optname, optval, *len);
78 close(sk);
88 test_verify_socket_key(sk, optva
100 setsockopt_checked(int sk, int optname, void *optval, int err, const char *tst) argument
128 int sk = socket(test_family, SOCK_STREAM, IPPROTO_TCP); local
194 int sk; local
236 int sk; local
274 int sk; local
382 int sk; local
500 int sk; local
590 getsockopt_checked(int sk, struct tcp_ao_getsockopt *optval, int err, const char *tst) argument
602 int sk; local
766 int sk; local
[all...]
/linux-master/include/linux/
H A Dudp.h50 #define udp_port_hash inet.sk.__sk_common.skc_u16hashes[0]
51 #define udp_portaddr_hash inet.sk.__sk_common.skc_u16hashes[1]
52 #define udp_portaddr_node inet.sk.__sk_common.skc_portaddr_node
73 int (*encap_rcv)(struct sock *sk, struct sk_buff *skb);
74 void (*encap_err_rcv)(struct sock *sk, struct sk_buff *skb, int err,
76 int (*encap_err_lookup)(struct sock *sk, struct sk_buff *skb);
77 void (*encap_destroy)(struct sock *sk);
80 struct sk_buff * (*gro_receive)(struct sock *sk,
83 int (*gro_complete)(struct sock *sk,
96 /* Cache friendly copy of sk
115 udp_set_peek_off(struct sock *sk, int val) argument
122 udp_set_no_check6_tx(struct sock *sk, bool val) argument
127 udp_set_no_check6_rx(struct sock *sk, bool val) argument
132 udp_get_no_check6_tx(const struct sock *sk) argument
137 udp_get_no_check6_rx(const struct sock *sk) argument
142 udp_cmsg_recv(struct msghdr *msg, struct sock *sk, struct sk_buff *skb) argument
171 udp_unexpected_gso(struct sock *sk, struct sk_buff *skb) argument
197 udp_allow_gso(struct sock *sk) argument
[all...]

Completed in 556 milliseconds

1234567891011>>