Searched refs:sk (Results 1 - 25 of 950) 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/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/include/net/
H A Dtimewait_sock.h18 void (*twsk_destructor)(struct sock *sk);
21 static inline void twsk_destructor(struct sock *sk) argument
23 if (sk->sk_prot->twsk_prot->twsk_destructor != NULL)
24 sk->sk_prot->twsk_prot->twsk_destructor(sk);
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
1335 sk_forward_alloc_get(const struct sock *sk) argument
1344 __sk_stream_memory_free(const struct sock *sk, int wake) argument
1354 sk_stream_memory_free(const struct sock *sk) argument
1359 __sk_stream_is_writeable(const struct sock *sk, int wake) argument
1365 sk_stream_is_writeable(const struct sock *sk) argument
1370 sk_under_cgroup_hierarchy(struct sock *sk, struct cgroup *ancestor) argument
1383 sk_sockets_allocated_dec(struct sock *sk) argument
1389 sk_sockets_allocated_inc(struct sock *sk) argument
1396 sk_sockets_allocated_read_positive(struct sock *sk) argument
1442 __sk_prot_rehash(struct sock *sk) argument
1488 sk_prot_mem_limits(const struct sock *sk, int index) argument
1498 sk_has_account(struct sock *sk) argument
1504 sk_wmem_schedule(struct sock *sk, int size) argument
1515 sk_rmem_schedule(struct sock *sk, struct sk_buff *skb, int size) argument
1526 sk_unused_reserved_mem(const struct sock *sk) argument
1539 sk_mem_reclaim(struct sock *sk) argument
1552 sk_mem_reclaim_final(struct sock *sk) argument
1558 sk_mem_charge(struct sock *sk, int size) argument
1565 sk_mem_uncharge(struct sock *sk, int size) argument
1592 lockdep_sock_is_held(const struct sock *sk) argument
1600 lock_sock(struct sock *sk) argument
1631 lock_sock_fast(struct sock *sk) argument
1640 lock_sock_fast_nested(struct sock *sk) argument
1659 release_sock(sk); variable
1686 sock_owned_by_me(const struct sock *sk) argument
1693 sock_not_owned_by_me(const struct sock *sk) argument
1700 sock_owned_by_user(const struct sock *sk) argument
1706 sock_owned_by_user_nocheck(const struct sock *sk) argument
1711 sock_release_ownership(struct sock *sk) argument
1723 struct sock *sk = (struct sock *)csk; local
1769 sock_alloc_send_skb(struct sock *sk, unsigned long size, int noblock, int *errcode) argument
1781 sock_replace_proto(struct sock *sk, struct proto *proto) argument
1794 sockcm_init(struct sockcm_cookie *sockc, const struct sock *sk) argument
1876 sock_put(struct sock *sk) argument
1888 sk_receive_skb(struct sock *sk, struct sk_buff *skb, const int nested) argument
1894 sk_tx_queue_set(struct sock *sk, int tx_queue) argument
1907 sk_tx_queue_clear(struct sock *sk) argument
1915 sk_tx_queue_get(const struct sock *sk) argument
1929 __sk_rx_queue_set(struct sock *sk, const struct sk_buff *skb, bool force_set) argument
1944 sk_rx_queue_set(struct sock *sk, const struct sk_buff *skb) argument
1949 sk_rx_queue_update(struct sock *sk, const struct sk_buff *skb) argument
1954 sk_rx_queue_clear(struct sock *sk) argument
1961 sk_rx_queue_get(const struct sock *sk) argument
1975 sk_set_socket(struct sock *sk, struct socket *sock) argument
1980 sk_sleep(struct sock *sk) argument
1992 sock_orphan(struct sock *sk) argument
2001 sock_graft(struct sock *sk, struct socket *parent) argument
2017 sock_net_uid(const struct net *net, const struct sock *sk) argument
2029 sk_set_txhash(struct sock *sk) argument
2035 sk_rethink_txhash(struct sock *sk) argument
2045 __sk_dst_get(const struct sock *sk) argument
2052 sk_dst_get(const struct sock *sk) argument
2064 __dst_negative_advice(struct sock *sk) argument
2079 dst_negative_advice(struct sock *sk) argument
2086 __sk_dst_set(struct sock *sk, struct dst_entry *dst) argument
2099 sk_dst_set(struct sock *sk, struct dst_entry *dst) argument
2110 __sk_dst_reset(struct sock *sk) argument
2116 sk_dst_reset(struct sock *sk) argument
2125 sk_dst_confirm(struct sock *sk) argument
2134 struct sock *sk = skb->sk; local
2144 sk_can_gso(const struct sock *sk) argument
2151 sk_gso_disable(struct sock *sk) argument
2157 skb_do_copy_data_nocache(struct sock *sk, struct sk_buff *skb, struct iov_iter *from, char *to, int copy, int offset) argument
2175 skb_add_data_nocache(struct sock *sk, struct sk_buff *skb, struct iov_iter *from, int copy) argument
2188 skb_copy_to_page_nocache(struct sock *sk, struct iov_iter *from, struct sk_buff *skb, struct page *page, int off, int copy) argument
2212 sk_wmem_alloc_get(const struct sock *sk) argument
2223 sk_rmem_alloc_get(const struct sock *sk) argument
2234 sk_has_allocations(const struct sock *sk) argument
2297 skb_set_hash_from_sk(struct sk_buff *skb, struct sock *sk) argument
2318 skb_set_owner_r(struct sk_buff *skb, struct sock *sk) argument
2327 skb_set_owner_sk_safe(struct sk_buff *skb, struct sock *sk) argument
2338 skb_clone_and_charge_r(struct sk_buff *skb, struct sock *sk) argument
2376 sock_queue_rcv_skb(struct sock *sk, struct sk_buff *skb) argument
2388 sock_error(struct sock *sk) argument
2404 sock_wspace(struct sock *sk) argument
2420 sk_set_bit(int nr, struct sock *sk) argument
2429 sk_clear_bit(int nr, struct sock *sk) argument
2438 sk_wake_async(const struct sock *sk, int how, int band) argument
2447 sk_wake_async_rcu(const struct sock *sk, int how, int band) argument
2463 sk_stream_moderate_sndbuf(struct sock *sk) argument
2492 sk_page_frag(struct sock *sk) argument
2505 sock_writeable(const struct sock *sk) argument
2520 sock_rcvtimeo(const struct sock *sk, bool noblock) argument
2525 sock_sndtimeo(const struct sock *sk, bool noblock) argument
2530 sock_rcvlowat(const struct sock *sk, int waitall, int len) argument
2563 sock_skb_set_dropcount(const struct sock *sk, struct sk_buff *skb) argument
2569 sk_drops_add(struct sock *sk, const struct sk_buff *skb) argument
2576 sock_read_timestamp(struct sock *sk) argument
2593 sock_write_timestamp(struct sock *sk, ktime_t kt) argument
2610 sock_recv_timestamp(struct msghdr *msg, struct sock *sk, struct sk_buff *skb) argument
2638 sock_recv_cmsgs(struct msghdr *msg, struct sock *sk, struct sk_buff *skb) argument
2667 _sock_tx_timestamp(struct sock *sk, __u16 tsflags, __u8 *tx_flags, __u32 *tskey) argument
2680 sock_tx_timestamp(struct sock *sk, __u16 tsflags, __u8 *tx_flags) argument
2692 sk_is_inet(const struct sock *sk) argument
2699 sk_is_tcp(const struct sock *sk) argument
2706 sk_is_udp(const struct sock *sk) argument
2713 sk_is_stream_unix(const struct sock *sk) argument
2726 sk_eat_skb(struct sock *sk, struct sk_buff *skb) argument
2745 sk_fullsock(const struct sock *sk) argument
2751 sk_is_refcounted(struct sock *sk) argument
2765 struct sock *sk = skb->sk; local
2782 sk_listener(const struct sock *sk) argument
2819 sk_get_wmem0(const struct sock *sk, const struct proto *proto) argument
2828 sk_get_rmem0(const struct sock *sk, const struct proto *proto) argument
2841 sk_pacing_shift_update(struct sock *sk, int val) argument
2853 sk_dev_equal_l3scope(struct sock *sk, int dif) argument
2894 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);
152 inet_csk_ca(const struct sock *sk) argument
177 inet_csk_schedule_ack(struct sock *sk) argument
182 inet_csk_ack_scheduled(const struct sock *sk) argument
187 inet_csk_delack_init(struct sock *sk) argument
195 inet_csk_clear_xmit_timer(struct sock *sk, const int what) argument
218 inet_csk_reset_xmit_timer(struct sock *sk, const int what, unsigned long when, const unsigned long max_when) argument
272 inet_csk_reqsk_queue_added(struct sock *sk) argument
277 inet_csk_reqsk_queue_len(const struct sock *sk) argument
282 inet_csk_reqsk_queue_is_full(const struct sock *sk) argument
298 inet_csk_prepare_for_destroy_sock(struct sock *sk) argument
311 inet_csk_listen_poll(const struct sock *sk) argument
328 inet_csk_enter_pingpong_mode(struct sock *sk) argument
334 inet_csk_exit_pingpong_mode(struct sock *sk) argument
339 inet_csk_in_pingpong_mode(struct sock *sk) argument
345 inet_csk_inc_pingpong_cnt(struct sock *sk) argument
353 inet_csk_has_ulp(const struct sock *sk) argument
358 inet_init_csk_locks(struct sock *sk) argument
[all...]
/linux-master/tools/testing/selftests/bpf/progs/
H A Dtcp_ca_kfunc.c7 extern void bbr_init(struct sock *sk) __ksym;
8 extern void bbr_main(struct sock *sk, u32 ack, int flag, const struct rate_sample *rs) __ksym;
9 extern u32 bbr_sndbuf_expand(struct sock *sk) __ksym;
10 extern u32 bbr_undo_cwnd(struct sock *sk) __ksym;
11 extern void bbr_cwnd_event(struct sock *sk, enum tcp_ca_event event) __ksym;
12 extern u32 bbr_ssthresh(struct sock *sk) __ksym;
13 extern u32 bbr_min_tso_segs(struct sock *sk) __ksym;
14 extern void bbr_set_state(struct sock *sk, u8 new_state) __ksym;
16 extern void dctcp_init(struct sock *sk) __ksym;
17 extern void dctcp_update_alpha(struct sock *sk, u3
31 BPF_PROG(init, struct sock *sk) argument
39 BPF_PROG(in_ack_event, struct sock *sk, u32 flags) argument
45 BPF_PROG(cong_control, struct sock *sk, u32 ack, int flag, const struct rate_sample *rs) argument
51 BPF_PROG(cong_avoid, struct sock *sk, u32 ack, u32 acked) argument
57 BPF_PROG(sndbuf_expand, struct sock *sk) argument
63 BPF_PROG(undo_cwnd, struct sock *sk) argument
70 BPF_PROG(cwnd_event, struct sock *sk, enum tcp_ca_event event) argument
78 BPF_PROG(ssthresh, struct sock *sk) argument
86 BPF_PROG(min_tso_segs, struct sock *sk) argument
92 BPF_PROG(set_state, struct sock *sk, u8 new_state) argument
100 BPF_PROG(pkts_acked, struct sock *sk, const struct ack_sample *sample) argument
[all...]
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/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.c27 static u32 tcp_clamp_rto_to_user_timeout(const struct sock *sk) argument
29 const struct inet_connection_sock *icsk = inet_csk(sk);
30 const struct tcp_sock *tp = tcp_sk(sk);
49 u32 tcp_clamp_probe0_to_user_timeout(const struct sock *sk, u32 when) argument
51 const struct inet_connection_sock *icsk = inet_csk(sk);
70 * @sk: The socket the error has appeared on.
75 static void tcp_write_err(struct sock *sk) argument
77 WRITE_ONCE(sk->sk_err, READ_ONCE(sk->sk_err_soft) ? : ETIMEDOUT);
78 sk_error_report(sk);
109 tcp_out_of_resources(struct sock *sk, bool do_reset) argument
152 tcp_orphan_retries(struct sock *sk, bool alive) argument
168 tcp_mtu_probing(struct inet_connection_sock *icsk, struct sock *sk) argument
190 tcp_model_timeout(struct sock *sk, unsigned int boundary, unsigned int rto_base) argument
217 retransmits_timed_out(struct sock *sk, unsigned int boundary, unsigned int timeout) argument
245 tcp_write_timeout(struct sock *sk) argument
310 tcp_delack_timer_handler(struct sock *sk) argument
365 struct sock *sk = &icsk->icsk_inet.sk; local
380 tcp_probe_timer(struct sock *sk) argument
430 tcp_update_rto_stats(struct sock *sk) argument
447 tcp_fastopen_synack_timer(struct sock *sk, struct request_sock *req) argument
482 tcp_rtx_probe0_timed_out(const struct sock *sk, const struct sk_buff *skb, u32 rtx_delta) argument
508 tcp_retransmit_timer(struct sock *sk) argument
669 tcp_write_timer_handler(struct sock *sk) argument
708 struct sock *sk = &icsk->icsk_inet.sk; local
730 tcp_set_keepalive(struct sock *sk, int val) argument
745 struct sock *sk = from_timer(sk, t, sk_timer); local
834 struct sock *sk = (struct sock *)tp; local
858 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/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
90 sk = conn->sk;
91 if (sk)
92 sock_hold(sk);
107 sco_sock_set_timer(struct sock *sk, long timeout) argument
117 sco_sock_clear_timer(struct sock *sk) argument
160 sco_chan_del(struct sock *sk, int err) argument
188 struct sock *sk; local
217 __sco_chan_add(struct sco_conn *conn, struct sock *sk, struct sock *parent) argument
229 sco_chan_add(struct sco_conn *conn, struct sock *sk, struct sock *parent) argument
244 sco_connect(struct sock *sk) argument
312 sco_send_frame(struct sock *sk, struct sk_buff *skb) argument
330 struct sock *sk; local
354 struct sock *sk; local
372 struct sock *sk = NULL, *sk1 = NULL; local
394 sco_sock_destruct(struct sock *sk) argument
404 struct sock *sk; local
421 sco_sock_kill(struct sock *sk) argument
434 __sco_sock_close(struct sock *sk) argument
470 sco_sock_close(struct sock *sk) argument
478 sco_sock_init(struct sock *sk, struct sock *parent) argument
498 struct sock *sk; local
520 struct sock *sk; local
543 struct sock *sk = sock->sk; local
576 struct sock *sk = sock->sk; local
611 struct sock *sk = sock->sk; local
653 struct sock *sk = sock->sk, *ch; local
708 struct sock *sk = sock->sk; local
725 struct sock *sk = sock->sk; local
808 struct sock *sk = sock->sk; local
830 struct sock *sk = sock->sk; local
968 struct sock *sk = sock->sk; local
1030 struct sock *sk = sock->sk; local
1211 struct sock *sk = sock->sk; local
1241 struct sock *sk = sock->sk; local
1266 struct sock *sk = conn->sk; local
1325 struct sock *sk; local
1403 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 419 milliseconds

1234567891011>>