Home
last modified time | relevance | path

Searched refs:sk (Results 1 – 25 of 787) sorted by relevance

12345678910>>...32

/linux/include/net/
H A Dsock.h453 void (*sk_data_ready)(struct sock *sk);
517 struct sk_buff* (*sk_validate_xmit_skb)(struct sock *sk,
580 void (*sk_state_change)(struct sock *sk);
581 void (*sk_write_space)(struct sock *sk);
582 void (*sk_error_report)(struct sock *sk);
583 int (*sk_backlog_rcv)(struct sock *sk,
585 void (*sk_destruct)(struct sock *sk);
643 static inline bool sk_user_data_is_nocopy(const struct sock *sk) in sk_user_data_is_nocopy() argument
645 return ((uintptr_t)sk->sk_user_data & SK_USER_DATA_NOCOPY); in sk_user_data_is_nocopy()
648 #define __sk_user_data(sk) ((*((void __rcu **)&(sk)->sk_user_data))) argument
[all …]
H A Dinet_connection_sock.h36 int (*queue_xmit)(struct sock *sk, struct sk_buff *skb, struct flowi *fl);
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,
47 const struct sock *sk));
48 int (*setsockopt)(struct sock *sk, int level, int optname,
50 int (*getsockopt)(struct sock *sk, int level, int optname,
52 void (*mtu_reduced)(struct sock *sk);
101 unsigned int (*icsk_sync_mss)(struct sock *sk, u32 pmtu);
[all …]
H A Dtcp.h68 void tcp_time_wait(struct sock *sk, int state, int timeo);
299 static inline bool tcp_under_memory_pressure(const struct sock *sk) in tcp_under_memory_pressure() argument
301 if (mem_cgroup_sk_enabled(sk) && in tcp_under_memory_pressure()
302 mem_cgroup_sk_under_memory_pressure(sk)) in tcp_under_memory_pressure()
305 if (sk->sk_bypass_prot_mem) in tcp_under_memory_pressure()
327 static inline void tcp_wmem_free_skb(struct sock *sk, struct sk_buff *skb) in tcp_wmem_free_skb() argument
329 sk_wmem_queued_add(sk, -skb->truesize); in tcp_wmem_free_skb()
331 sk_mem_uncharge(sk, skb->truesize); in tcp_wmem_free_skb()
333 sk_mem_uncharge(sk, SKB_TRUESIZE(skb_end_offset(skb))); in tcp_wmem_free_skb()
337 void sk_forced_mem_schedule(struct sock *sk, int size);
[all …]
/linux/net/bluetooth/
H A Dsco.c47 struct sock *sk; member
58 static void sco_sock_close(struct sock *sk);
59 static void sco_sock_kill(struct sock *sk);
62 #define sco_pi(sk) ((struct sco_pinfo *) sk) argument
84 if (conn->sk) in sco_conn_free()
85 sco_pi(conn->sk)->conn = NULL; in sco_conn_free()
133 if (!conn || !bt_sock_linked(&sco_sk_list, conn->sk)) in sco_sock_hold()
136 sock_hold(conn->sk); in sco_sock_hold()
138 return conn->sk;
143 struct sock *sk; sco_sock_timeout() local
171 sco_sock_set_timer(struct sock * sk,long timeout) sco_sock_set_timer() argument
181 sco_sock_clear_timer(struct sock * sk) sco_sock_clear_timer() argument
235 sco_chan_del(struct sock * sk,int err) sco_chan_del() argument
261 struct sock *sk; sco_conn_del() local
285 __sco_chan_add(struct sco_conn * conn,struct sock * sk,struct sock * parent) __sco_chan_add() argument
297 sco_chan_add(struct sco_conn * conn,struct sock * sk,struct sock * parent) sco_chan_add() argument
312 sco_connect(struct sock * sk) sco_connect() argument
404 sco_send_frame(struct sock * sk,struct sk_buff * skb,const struct sockcm_cookie * sockc) sco_send_frame() argument
424 struct sock *sk; sco_recv_frame() local
452 struct sock *sk; __sco_get_sock_listen_by_addr() local
470 struct sock *sk = NULL, *sk1 = NULL; sco_get_sock_listen() local
496 sco_sock_destruct(struct sock * sk) sco_sock_destruct() argument
509 struct sock *sk; sco_sock_cleanup_listen() local
528 sco_sock_kill(struct sock * sk) sco_sock_kill() argument
550 __sco_sock_close(struct sock * sk) __sco_sock_close() argument
575 sco_sock_close(struct sock * sk) sco_sock_close() argument
596 sco_sock_init(struct sock * sk,struct sock * parent) sco_sock_init() argument
616 struct sock *sk; sco_sock_alloc() local
638 struct sock *sk; sco_sock_create() local
661 struct sock *sk = sock->sk; sco_sock_bind() local
694 struct sock *sk = sock->sk; sco_sock_connect() local
734 struct sock *sk = sock->sk; sco_sock_listen() local
776 struct sock *sk = sock->sk, *ch; sco_sock_accept() local
836 struct sock *sk = sock->sk; sco_sock_getname() local
853 struct sock *sk = sock->sk; sco_sock_sendmsg() local
945 struct sock *sk = sock->sk; sco_sock_recvmsg() local
971 struct sock *sk = sock->sk; sco_sock_setsockopt() local
1109 struct sock *sk = sock->sk; sco_sock_getsockopt_old() local
1170 struct sock *sk = sock->sk; sco_sock_getsockopt() local
1354 struct sock *sk = sock->sk; sco_sock_shutdown() local
1384 struct sock *sk = sock->sk; sco_sock_release() local
1408 struct sock *parent, *sk; sco_conn_ready() local
1479 struct sock *sk; sco_connect_ind() local
1578 struct sock *sk; sco_debugfs_show() local
[all...]
H A Diso.c38 struct sock *sk; member
49 static void iso_sock_close(struct sock *sk);
50 static void iso_sock_kill(struct sock *sk);
53 #define iso_pi(sk) ((struct iso_pinfo *)sk) argument
90 static bool iso_match_sid(struct sock *sk, void *data);
91 static bool iso_match_sid_past(struct sock *sk, void *data);
92 static bool iso_match_sync_handle(struct sock *sk, void *data);
93 static bool iso_match_sync_handle_pa_report(struct sock *sk, void *data);
94 static void iso_sock_disconn(struct sock *sk);
188 struct sock *sk = &pi->bt.sk; iso_sock_timeout() local
200 iso_sock_set_timer(struct sock * sk,long timeout) iso_sock_set_timer() argument
213 iso_sock_clear_timer(struct sock * sk) iso_sock_clear_timer() argument
219 iso_sock_disable_timer(struct sock * sk) iso_sock_disable_timer() argument
267 iso_chan_del(struct sock * sk,int err) iso_chan_del() argument
302 struct sock *sk; iso_conn_del() local
340 __iso_chan_add(struct iso_conn * conn,struct sock * sk,struct sock * parent) __iso_chan_add() argument
368 iso_chan_add(struct iso_conn * conn,struct sock * sk,struct sock * parent) iso_chan_add() argument
388 iso_connect_bis(struct sock * sk) iso_connect_bis() argument
492 iso_connect_cis(struct sock * sk) iso_connect_cis() argument
604 iso_sock_get_qos(struct sock * sk) iso_sock_get_qos() argument
612 iso_send_frame(struct sock * sk,struct sk_buff * skb,const struct sockcm_cookie * sockc) iso_send_frame() argument
645 struct sock *sk; iso_recv_frame() local
673 struct sock *sk; __iso_get_sock_listen_by_addr() local
692 struct sock *sk; __iso_get_sock_listen_by_sid() local
722 struct sock *sk = NULL, *sk1 = NULL; iso_get_sock() local
782 struct sock *sk = NULL; iso_get_sock_big() local
818 iso_sock_destruct(struct sock * sk) iso_sock_destruct() argument
832 struct sock *sk; iso_sock_flush_accept_q() local
861 iso_sock_kill(struct sock * sk) iso_sock_kill() argument
891 iso_sock_disconn(struct sock * sk) iso_sock_disconn() argument
921 __iso_sock_close(struct sock * sk) __iso_sock_close() argument
958 iso_sock_close(struct sock * sk) iso_sock_close() argument
967 iso_sock_init(struct sock * sk,struct sock * parent) iso_sock_init() argument
1016 struct sock *sk; iso_sock_alloc() local
1040 struct sock *sk; iso_sock_create() local
1063 struct sock *sk = sock->sk; iso_sock_bind_bc() local
1102 iso_sock_rebind_bis(struct sock * sk,struct sockaddr_iso * sa,int addr_len) iso_sock_rebind_bis() argument
1144 iso_sock_rebind_bc(struct sock * sk,struct sockaddr_iso * sa,int addr_len) iso_sock_rebind_bc() argument
1206 struct sock *sk = sock->sk; iso_sock_bind() local
1263 struct sock *sk = sock->sk; iso_sock_connect() local
1308 iso_listen_bis(struct sock * sk) iso_listen_bis() argument
1379 iso_listen_cis(struct sock * sk) iso_listen_cis() argument
1397 struct sock *sk = sock->sk; iso_sock_listen() local
1444 struct sock *sk = sock->sk, *ch; iso_sock_accept() local
1544 struct sock *sk = sock->sk; iso_sock_getname() local
1582 struct sock *sk = sock->sk; iso_sock_sendmsg() local
1675 iso_conn_big_sync(struct sock * sk) iso_conn_big_sync() argument
1734 struct sock *sk = sock->sk; iso_sock_recvmsg() local
1925 struct sock *sk = sock->sk; iso_sock_setsockopt() local
2024 struct sock *sk = sock->sk; iso_sock_getsockopt() local
2094 struct sock *sk = sock->sk; iso_sock_shutdown() local
2139 struct sock *sk = sock->sk; iso_sock_release() local
2169 iso_sock_ready(struct sock * sk) iso_sock_ready() argument
2186 iso_match_big(struct sock * sk,void * data) iso_match_big() argument
2193 iso_match_big_hcon(struct sock * sk,void * data) iso_match_big_hcon() argument
2200 iso_match_pa_sync_flag(struct sock * sk,void * data) iso_match_pa_sync_flag() argument
2205 iso_match_dst(struct sock * sk,void * data) iso_match_dst() argument
2213 struct sock *sk; iso_conn_ready() local
2398 iso_match_sid(struct sock * sk,void * data) iso_match_sid() argument
2408 iso_match_sid_past(struct sock * sk,void * data) iso_match_sid_past() argument
2418 iso_match_sync_handle(struct sock * sk,void * data) iso_match_sync_handle() argument
2425 iso_match_sync_handle_pa_report(struct sock * sk,void * data) iso_match_sync_handle_pa_report() argument
2440 struct sock *sk; iso_connect_ind() local
2859 struct sock *sk; iso_debugfs_show() local
[all...]
H A Daf_bluetooth.c71 void bt_sock_reclassify_lock(struct sock *sk, int proto) in bt_sock_reclassify_lock() argument
73 BUG_ON(!sk); in bt_sock_reclassify_lock()
74 BUG_ON(!sock_allow_reclassification(sk)); in bt_sock_reclassify_lock()
76 sock_lock_init_class_and_name(sk, in bt_sock_reclassify_lock()
134 bt_sock_reclassify_lock(sock->sk, proto); in bt_sock_create()
146 struct sock *sk; in bt_sock_alloc() local
148 sk = sk_alloc(net, PF_BLUETOOTH, prio, prot, kern); in bt_sock_alloc()
149 if (!sk) in bt_sock_alloc()
152 sock_init_data(sock, sk); in bt_sock_alloc()
153 INIT_LIST_HEAD(&bt_sk(sk)->accept_q); in bt_sock_alloc()
[all …]
H A Dl2cap_sock.c44 static void l2cap_sock_init(struct sock *sk, struct sock *parent);
84 struct sock *sk = sock->sk; in l2cap_sock_bind() local
85 struct l2cap_chan *chan = l2cap_pi(sk)->chan; in l2cap_sock_bind()
89 BT_DBG("sk %p", sk); in l2cap_sock_bind()
112 lock_sock(sk); in l2cap_sock_bind()
114 if (sk->sk_state != BT_OPEN) { in l2cap_sock_bind()
173 sk->sk_state = BT_BOUND; in l2cap_sock_bind()
176 release_sock(sk); in l2cap_sock_bind()
183 struct sock *sk = sock->sk; in l2cap_sock_connect() local
184 struct l2cap_chan *chan = l2cap_pi(sk)->chan; in l2cap_sock_connect()
[all …]
/linux/net/bluetooth/rfcomm/
H A Dsock.c41 static void rfcomm_sock_close(struct sock *sk);
42 static void rfcomm_sock_kill(struct sock *sk);
50 struct sock *sk = d->owner; in rfcomm_sk_data_ready() local
52 if (!sk) { in rfcomm_sk_data_ready()
57 atomic_add(skb->len, &sk->sk_rmem_alloc); in rfcomm_sk_data_ready()
58 skb_queue_tail(&sk->sk_receive_queue, skb); in rfcomm_sk_data_ready()
59 sk->sk_data_ready(sk); in rfcomm_sk_data_ready()
61 if (atomic_read(&sk->sk_rmem_alloc) >= sk in rfcomm_sk_data_ready()
65 struct sock *sk = d->owner, *parent; rfcomm_sk_state_change() local
107 struct sock *sk = NULL; __rfcomm_get_listen_sock_by_addr() local
128 struct sock *sk = NULL, *sk1 = NULL; rfcomm_get_sock_by_channel() local
162 rfcomm_sock_destruct(struct sock * sk) rfcomm_sock_destruct() argument
184 struct sock *sk; rfcomm_sock_cleanup_listen() local
203 rfcomm_sock_kill(struct sock * sk) rfcomm_sock_kill() argument
216 __rfcomm_sock_close(struct sock * sk) __rfcomm_sock_close() argument
243 rfcomm_sock_close(struct sock * sk) rfcomm_sock_close() argument
248 rfcomm_sock_init(struct sock * sk,struct sock * parent) rfcomm_sock_init() argument
284 struct sock *sk; rfcomm_sock_alloc() local
317 struct sock *sk; rfcomm_sock_create() local
339 struct sock *sk = sock->sk; rfcomm_sock_bind() local
387 struct sock *sk = sock->sk; rfcomm_sock_connect() local
434 struct sock *sk = sock->sk; rfcomm_sock_listen() local
485 struct sock *sk = sock->sk, *nsk; rfcomm_sock_accept() local
550 struct sock *sk = sock->sk; rfcomm_sock_getname() local
572 struct sock *sk = sock->sk; rfcomm_sock_sendmsg() local
612 struct sock *sk = sock->sk; rfcomm_sock_recvmsg() local
637 struct sock *sk = sock->sk; rfcomm_sock_setsockopt_old() local
678 struct sock *sk = sock->sk; rfcomm_sock_setsockopt() local
743 struct sock *sk = sock->sk; rfcomm_sock_getsockopt_old() local
822 struct sock *sk = sock->sk; rfcomm_sock_getsockopt() local
907 struct sock *sk = sock->sk; rfcomm_sock_shutdown() local
942 struct sock *sk = sock->sk; rfcomm_sock_release() local
963 struct sock *sk, *parent; rfcomm_connect_ind() local
1021 struct sock *sk; rfcomm_sock_debugfs_show() local
[all...]
/linux/net/smc/
H A Dsmc_close.c41 struct sock *sk; in smc_close_cleanup_listen() local
44 while ((sk = smc_accept_dequeue(parent, NULL))) in smc_close_cleanup_listen()
45 smc_close_non_accepted(sk); in smc_close_cleanup_listen()
52 struct sock *sk = &smc->sk; in smc_close_stream_wait() local
64 add_wait_queue(sk_sleep(sk), &wait); in smc_close_stream_wait()
68 rc = sk_wait_event(sk, &timeout, in smc_close_stream_wait()
70 READ_ONCE(sk->sk_err) == ECONNABORTED || in smc_close_stream_wait()
71 READ_ONCE(sk->sk_err) == ECONNRESET || in smc_close_stream_wait()
77 remove_wait_queue(sk_sleep(sk), &wait); in smc_close_stream_wait()
85 smc->sk.sk_state_change(&smc->sk); in smc_close_wake_tx_prepared()
[all …]
/linux/net/ipv4/
H A Dtcp_timer.c28 static u32 tcp_clamp_rto_to_user_timeout(const struct sock *sk) in tcp_clamp_rto_to_user_timeout() argument
30 const struct inet_connection_sock *icsk = inet_csk(sk); in tcp_clamp_rto_to_user_timeout()
31 const struct tcp_sock *tp = tcp_sk(sk); in tcp_clamp_rto_to_user_timeout()
50 u32 tcp_clamp_probe0_to_user_timeout(const struct sock *sk, u32 when) in tcp_clamp_probe0_to_user_timeout() argument
52 const struct inet_connection_sock *icsk = inet_csk(sk); in tcp_clamp_probe0_to_user_timeout()
77 static void tcp_write_err(struct sock *sk) in tcp_write_err() argument
79 tcp_done_with_error(sk, READ_ONCE(sk->sk_err_soft) ? : ETIMEDOUT); in tcp_write_err()
80 __NET_INC_STATS(sock_net(sk), LINUX_MIB_TCPABORTONTIMEOUT); in tcp_write_err()
107 static int tcp_out_of_resources(struct sock *sk, bool do_reset) in tcp_out_of_resources() argument
109 struct tcp_sock *tp = tcp_sk(sk); in tcp_out_of_resources()
[all …]
/linux/net/core/
H A Dsock.c51 * Anonymous : inet_create tidied up (sk->reuse setting)
52 * Alan Cox : inet sockets don't set sk->type!
159 static void sock_def_write_space_wfree(struct sock *sk, int wmem_alloc);
160 static void sock_def_write_space(struct sock *sk);
164 * @sk: Socket to use a capability on or through
172 bool sk_ns_capable(const struct sock *sk, in sk_ns_capable() argument
175 return file_ns_capable(sk->sk_socket->file, user_ns, cap) && in sk_ns_capable()
182 * @sk: Socket to use a capability on or through
189 bool sk_capable(const struct sock *sk, int cap) in sk_capable() argument
191 return sk_ns_capable(sk, in sk_capable()
204 sk_net_capable(const struct sock * sk,int cap) sk_net_capable() argument
303 sk_set_memalloc(struct sock * sk) sk_set_memalloc() argument
311 sk_clear_memalloc(struct sock * sk) sk_clear_memalloc() argument
328 __sk_backlog_rcv(struct sock * sk,struct sk_buff * skb) __sk_backlog_rcv() argument
347 sk_error_report(struct sock * sk) sk_error_report() argument
460 sk_set_prio_allowed(const struct sock * sk,int val) sk_set_prio_allowed() argument
467 sock_needs_netstamp(const struct sock * sk) sock_needs_netstamp() argument
478 sock_disable_timestamp(struct sock * sk,unsigned long flags) sock_disable_timestamp() argument
489 __sock_queue_rcv_skb(struct sock * sk,struct sk_buff * skb) __sock_queue_rcv_skb() argument
525 sock_queue_rcv_skb_reason(struct sock * sk,struct sk_buff * skb) sock_queue_rcv_skb_reason() argument
545 __sk_receive_skb(struct sock * sk,struct sk_buff * skb,const int nested,unsigned int trim_cap,bool refcounted) __sk_receive_skb() argument
601 __sk_dst_check(struct sock * sk,u32 cookie) __sk_dst_check() argument
619 sk_dst_check(struct sock * sk,u32 cookie) sk_dst_check() argument
635 sock_bindtoindex_locked(struct sock * sk,int ifindex) sock_bindtoindex_locked() argument
665 sock_bindtoindex(struct sock * sk,int ifindex,bool lock_sk) sock_bindtoindex() argument
679 sock_setbindtodevice(struct sock * sk,sockptr_t optval,int optlen) sock_setbindtodevice() argument
727 sock_getbindtodevice(struct sock * sk,sockptr_t optval,sockptr_t optlen,int len) sock_getbindtodevice() argument
768 sk_mc_loop(const struct sock * sk) sk_mc_loop() argument
787 sock_set_reuseaddr(struct sock * sk) sock_set_reuseaddr() argument
795 sock_set_reuseport(struct sock * sk) sock_set_reuseport() argument
803 sock_no_linger(struct sock * sk) sock_no_linger() argument
812 sock_set_priority(struct sock * sk,u32 priority) sock_set_priority() argument
818 sock_set_sndtimeo(struct sock * sk,s64 secs) sock_set_sndtimeo() argument
827 __sock_set_timestamps(struct sock * sk,bool val,bool new,bool ns) __sock_set_timestamps() argument
837 sock_set_timestamp(struct sock * sk,int optname,bool valbool) sock_set_timestamp() argument
855 sock_timestamping_bind_phc(struct sock * sk,int phc_index) sock_timestamping_bind_phc() argument
892 sock_set_timestamping(struct sock * sk,int optname,struct so_timestamping timestamping) sock_set_timestamping() argument
944 bpf_skops_tx_timestamping(struct sock * sk,struct sk_buff * skb,int op) bpf_skops_tx_timestamping() argument
957 sock_set_keepalive(struct sock * sk) sock_set_keepalive() argument
967 __sock_set_rcvbuf(struct sock * sk,int val) __sock_set_rcvbuf() argument
997 sock_set_rcvbuf(struct sock * sk,int val) sock_set_rcvbuf() argument
1005 __sock_set_mark(struct sock * sk,u32 val) __sock_set_mark() argument
1013 sock_set_mark(struct sock * sk,u32 val) sock_set_mark() argument
1021 sock_release_reserved_memory(struct sock * sk,int bytes) sock_release_reserved_memory() argument
1031 sock_reserve_memory(struct sock * sk,int bytes) sock_reserve_memory() argument
1087 sock_devmem_dontneed(struct sock * sk,sockptr_t optval,unsigned int optlen) sock_devmem_dontneed() argument
1145 sockopt_lock_sock(struct sock * sk) sockopt_lock_sock() argument
1158 sockopt_release_sock(struct sock * sk) sockopt_release_sock() argument
1195 sk_setsockopt(struct sock * sk,int level,int optname,sockptr_t optval,unsigned int optlen) sk_setsockopt() argument
1693 sk_get_peer_cred(struct sock * sk) sk_get_peer_cred() argument
1732 sk_getsockopt(struct sock * sk,int level,int optname,sockptr_t optval,sockptr_t optlen) sk_getsockopt() argument
2185 sock_lock_init(struct sock * sk) sock_lock_init() argument
2241 struct sock *sk; sk_prot_alloc() local
2274 sk_prot_free(struct proto * prot,struct sock * sk) sk_prot_free() argument
2306 struct sock *sk; sk_alloc() local
2352 struct sock *sk = container_of(head, struct sock, sk_rcu); __sk_destruct() local
2394 sk_net_refcnt_upgrade(struct sock * sk) sk_net_refcnt_upgrade() argument
2407 sk_destruct(struct sock * sk) sk_destruct() argument
2422 __sk_free(struct sock * sk) __sk_free() argument
2433 sk_free(struct sock * sk) sk_free() argument
2445 sk_init_common(struct sock * sk) sk_init_common() argument
2480 sk_clone(const struct sock * sk,const gfp_t priority,bool lock) sk_clone() argument
2622 sk_dst_gso_max_size(struct sock * sk,const struct net_device * dev) sk_dst_gso_max_size() argument
2640 sk_setup_caps(struct sock * sk,struct dst_entry * dst) sk_setup_caps() argument
2674 sk_has_decrypt_user(const struct sock * sk) sk_has_decrypt_user() argument
2691 struct sock *sk = skb->sk; sock_wfree() local
2735 struct sock *sk = skb->sk; __sock_wfree() local
2743 skb_set_owner_w(struct sk_buff * skb,struct sock * sk) skb_set_owner_w() argument
2807 struct sock *sk = skb->sk; sock_rfree() local
2831 struct sock *sk = skb->sk; sock_pfree() local
2850 sock_wmalloc(struct sock * sk,unsigned long size,int force,gfp_t priority) sock_wmalloc() argument
2868 struct sock *sk = skb->sk; sock_ofree() local
2873 sock_omalloc(struct sock * sk,unsigned long size,gfp_t priority) sock_omalloc() argument
2896 sock_kmalloc(struct sock * sk,int size,gfp_t priority) sock_kmalloc() argument
2920 sock_kmemdup(struct sock * sk,const void * src,int size,gfp_t priority) sock_kmemdup() argument
2936 __sock_kfree_s(struct sock * sk,void * mem,int size,const bool nullify) __sock_kfree_s() argument
2948 sock_kfree_s(struct sock * sk,void * mem,int size) sock_kfree_s() argument
2954 sock_kzfree_s(struct sock * sk,void * mem,int size) sock_kzfree_s() argument
2963 sock_wait_for_wmem(struct sock * sk,long timeo) sock_wait_for_wmem() argument
2992 sock_alloc_send_pskb(struct sock * sk,unsigned long header_len,unsigned long data_len,int noblock,int * errcode,int max_page_order) sock_alloc_send_pskb() argument
3036 __sock_cmsg_send(struct sock * sk,struct cmsghdr * cmsg,struct sockcm_cookie * sockc) __sock_cmsg_send() argument
3135 sock_cmsg_send(struct sock * sk,struct msghdr * msg,struct sockcm_cookie * sockc) sock_cmsg_send() argument
3154 sk_enter_memory_pressure(struct sock * sk) sk_enter_memory_pressure() argument
3162 sk_leave_memory_pressure(struct sock * sk) sk_leave_memory_pressure() argument
3221 sk_page_frag_refill(struct sock * sk,struct page_frag * pfrag) sk_page_frag_refill() argument
3235 __lock_sock(struct sock * sk) __lock_sock() argument
3253 __release_sock(struct sock * sk) __release_sock() argument
3290 __sk_flush_backlog(struct sock * sk) __sk_flush_backlog() argument
3314 sk_wait_data(struct sock * sk,long * timeo,const struct sk_buff * skb) sk_wait_data() argument
3343 __sk_mem_raise_allocated(struct sock * sk,int size,int amt,int kind) __sk_mem_raise_allocated() argument
3461 __sk_mem_schedule(struct sock * sk,int size,int kind) __sk_mem_schedule() argument
3480 __sk_mem_reduce_allocated(struct sock * sk,int amount) __sk_mem_reduce_allocated() argument
3500 __sk_mem_reclaim(struct sock * sk,int amount) __sk_mem_reclaim() argument
3508 __sk_charge(struct sock * sk,gfp_t gfp) __sk_charge() argument
3526 sk_set_peek_off(struct sock * sk,int val) sk_set_peek_off() argument
3597 sock_no_sendmsg_locked(struct sock * sk,struct msghdr * m,size_t len) sock_no_sendmsg_locked() argument
3636 sock_def_wakeup(struct sock * sk) sock_def_wakeup() argument
3647 sock_def_error_report(struct sock * sk) sock_def_error_report() argument
3659 sock_def_readable(struct sock * sk) sock_def_readable() argument
3674 sock_def_write_space(struct sock * sk) sock_def_write_space() argument
3700 sock_def_write_space_wfree(struct sock * sk,int wmem_alloc) sock_def_write_space_wfree() argument
3719 sock_def_destruct(struct sock * sk) sock_def_destruct() argument
3723 sk_send_sigurg(struct sock * sk) sk_send_sigurg() argument
3731 sk_reset_timer(struct sock * sk,struct timer_list * timer,unsigned long expires) sk_reset_timer() argument
3739 sk_stop_timer(struct sock * sk,struct timer_list * timer) sk_stop_timer() argument
3746 sk_stop_timer_sync(struct sock * sk,struct timer_list * timer) sk_stop_timer_sync() argument
3753 sock_init_data_uid(struct socket * sock,struct sock * sk,kuid_t uid) sock_init_data_uid() argument
3824 sock_init_data(struct socket * sock,struct sock * sk) sock_init_data() argument
3834 lock_sock_nested(struct sock * sk,int subclass) lock_sock_nested() argument
3864 release_sock(struct sock * sk) release_sock() argument
3883 __lock_sock_fast(struct sock * sk) __lock_sock_fast() argument
3918 struct sock *sk = sock->sk; sock_gettstamp() local
3961 sock_enable_timestamp(struct sock * sk,enum sock_flags flag) sock_enable_timestamp() argument
3978 sock_recv_errqueue(struct sock * sk,struct msghdr * msg,int len,int level,int type) sock_recv_errqueue() argument
4025 struct sock *sk = sock->sk; sock_common_getsockopt() local
4035 struct sock *sk = sock->sk; sock_common_recvmsg() local
4047 struct sock *sk = sock->sk; sock_common_setsockopt() local
4054 sk_common_release(struct sock * sk) sk_common_release() argument
4089 sk_get_meminfo(const struct sock * sk,u32 * mem) sk_get_meminfo() argument
4484 struct sock *sk = p; sk_busy_loop_end() local
4498 sock_bind_add(struct sock * sk,struct sockaddr_unsized * addr,int addr_len) sock_bind_add() argument
4507 sock_ioctl_inout(struct sock * sk,unsigned int cmd,void __user * arg,void * karg,size_t size) sock_ioctl_inout() argument
4530 sock_ioctl_out(struct sock * sk,unsigned int cmd,void __user * arg) sock_ioctl_out() argument
4546 sk_ioctl(struct sock * sk,unsigned int cmd,void __user * arg) sk_ioctl() argument
[all...]
/linux/net/x25/
H A Dx25_timer.c27 void x25_init_timers(struct sock *sk) in x25_init_timers() argument
29 struct x25_sock *x25 = x25_sk(sk); in x25_init_timers()
34 sk->sk_timer.function = x25_heartbeat_expiry; in x25_init_timers()
37 void x25_start_heartbeat(struct sock *sk) in x25_start_heartbeat() argument
39 sk_reset_timer(sk, &sk->sk_timer, jiffies + 5 * HZ); in x25_start_heartbeat()
42 void x25_stop_heartbeat(struct sock *sk) in x25_stop_heartbeat() argument
44 sk_stop_timer(sk, &sk->sk_timer); in x25_stop_heartbeat()
47 void x25_start_t2timer(struct sock *sk) in x25_start_t2timer() argument
49 struct x25_sock *x25 = x25_sk(sk); in x25_start_t2timer()
51 sk_reset_timer(sk, &x25->timer, jiffies + x25->t2); in x25_start_t2timer()
[all …]
H A Dx25_in.c32 static int x25_queue_rx_frame(struct sock *sk, struct sk_buff *skb, int more) in x25_queue_rx_frame() argument
35 struct x25_sock *x25 = x25_sk(sk); in x25_queue_rx_frame()
44 skb_set_owner_r(skb, sk); in x25_queue_rx_frame()
77 skb_set_owner_r(skbn, sk); in x25_queue_rx_frame()
78 skb_queue_tail(&sk->sk_receive_queue, skbn); in x25_queue_rx_frame()
79 if (!sock_flag(sk, SOCK_DEAD)) in x25_queue_rx_frame()
80 sk->sk_data_ready(sk); in x25_queue_rx_frame()
90 static int x25_state1_machine(struct sock *sk, struct sk_buff *skb, int frametype) in x25_state1_machine() argument
94 struct x25_sock *x25 = x25_sk(sk); in x25_state1_machine()
99 x25_stop_timer(sk); in x25_state1_machine()
[all …]
/linux/tools/testing/selftests/net/tcp_ao/
H A Dsetsockopt-closed.c12 static void make_listen(int sk) in make_listen() argument
17 if (bind(sk, (struct sockaddr *)&addr, sizeof(addr)) < 0) in make_listen()
19 if (listen(sk, 1)) in make_listen()
23 static void test_vefify_ao_info(int sk, struct tcp_ao_info_opt *info, in test_vefify_ao_info() argument
29 if (getsockopt(sk, IPPROTO_TCP, TCP_AO_INFO, &tmp, &len)) in test_vefify_ao_info()
58 static void __setsockopt_checked(int sk, int optname, bool get, in __setsockopt_checked() argument
71 ret = getsockopt(sk, IPPROTO_TCP, optname, optval, len); in __setsockopt_checked()
73 ret = setsockopt(sk, IPPROTO_TCP, optname, optval, *len); in __setsockopt_checked()
80 close(sk); in __setsockopt_checked()
90 test_verify_socket_key(sk, optval); in __setsockopt_checked()
[all …]
/linux/net/dccp/
H A Dinput.c
H A Dproto.c
H A Dtimer.c
H A Doutput.c
/linux/net/iucv/
H A Daf_iucv.c57 #define __iucv_sock_wait(sk, condition, timeo, ret) \ argument
62 prepare_to_wait(sk_sleep(sk), &__wait, TASK_INTERRUPTIBLE); \
72 release_sock(sk); \
74 lock_sock(sk); \
75 ret = sock_error(sk); \
79 finish_wait(sk_sleep(sk), &__wait); \
82 #define iucv_sock_wait(sk, condition, timeo) \ argument
86 __iucv_sock_wait(sk, condition, timeo, __ret); \
92 static void iucv_sock_kill(struct sock *sk);
93 static void iucv_sock_close(struct sock *sk);
[all …]
/linux/net/nfc/
H A Drawsock.c23 static void nfc_sock_link(struct nfc_sock_list *l, struct sock *sk) in nfc_sock_link() argument
26 sk_add_node(sk, &l->head); in nfc_sock_link()
30 static void nfc_sock_unlink(struct nfc_sock_list *l, struct sock *sk) in nfc_sock_unlink() argument
33 sk_del_node_init(sk); in nfc_sock_unlink()
37 static void rawsock_write_queue_purge(struct sock *sk) in rawsock_write_queue_purge() argument
39 pr_debug("sk=%p\n", sk); in rawsock_write_queue_purge()
41 spin_lock_bh(&sk->sk_write_queue.lock); in rawsock_write_queue_purge()
42 __skb_queue_purge(&sk->sk_write_queue); in rawsock_write_queue_purge()
43 nfc_rawsock(sk)->tx_work_scheduled = false; in rawsock_write_queue_purge()
44 spin_unlock_bh(&sk->sk_write_queue.lock); in rawsock_write_queue_purge()
[all …]
H A Dllcp_sock.c17 static int sock_wait_state(struct sock *sk, int state, unsigned long timeo) in sock_wait_state() argument
22 pr_debug("sk %p", sk); in sock_wait_state()
24 add_wait_queue(sk_sleep(sk), &wait); in sock_wait_state()
27 while (sk->sk_state != state) { in sock_wait_state()
38 release_sock(sk); in sock_wait_state()
40 lock_sock(sk); in sock_wait_state()
43 err = sock_error(sk); in sock_wait_state()
49 remove_wait_queue(sk_sleep(sk), &wait); in sock_wait_state()
61 struct sock *sk = sock->sk; in llcp_sock_bind() local
62 struct nfc_llcp_sock *llcp_sock = nfc_llcp_sock(sk); in llcp_sock_bind()
[all …]
/linux/net/phonet/
H A Dsocket.c30 struct sock *sk = sock->sk; in pn_socket_release() local
32 if (sk) { in pn_socket_release()
33 sock->sk = NULL; in pn_socket_release()
34 sk->sk_prot->close(sk, 0); in pn_socket_release()
132 int pn_sock_hash(struct sock *sk) in pn_sock_hash() argument
134 struct hlist_head *hlist = pn_hash_list(pn_sk(sk)->sobject); in pn_sock_hash()
137 sk_add_node_rcu(sk, hlist); in pn_sock_hash()
144 void pn_sock_unhash(struct sock *sk) in pn_sock_unhash() argument
147 sk_del_node_init_rcu(sk); in pn_sock_unhash()
149 pn_sock_unbind_all_res(sk); in pn_sock_unhash()
[all …]
/linux/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_tx_start(struct sock *sk) __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) BPF_PROG() argument
39 BPF_PROG(in_ack_event,struct sock * sk,u32 flags) BPF_PROG() argument
45 BPF_PROG(cong_control,struct sock * sk,u32 ack,int flag,const struct rate_sample * rs) BPF_PROG() argument
51 BPF_PROG(cong_avoid,struct sock * sk,u32 ack,u32 acked) BPF_PROG() argument
57 BPF_PROG(sndbuf_expand,struct sock * sk) BPF_PROG() argument
63 BPF_PROG(undo_cwnd,struct sock * sk) BPF_PROG() argument
70 BPF_PROG(cwnd_event,struct sock * sk,enum tcp_ca_event event) BPF_PROG() argument
78 BPF_PROG(ssthresh,struct sock * sk) BPF_PROG() argument
86 BPF_PROG(min_tso_segs,struct sock * sk) BPF_PROG() argument
92 BPF_PROG(set_state,struct sock * sk,u8 new_state) BPF_PROG() argument
100 BPF_PROG(pkts_acked,struct sock * sk,const struct ack_sample * sample) BPF_PROG() argument
[all...]
/linux/sound/usb/usx2y/
H A Dusb_stream.c13 static unsigned int usb_stream_next_packet_size(struct usb_stream_kernel *sk) in usb_stream_next_packet_size() argument
15 struct usb_stream *s = sk->s; in usb_stream_next_packet_size()
17 sk->out_phase_peeked = (sk->out_phase & 0xffff) + sk->freqn; in usb_stream_next_packet_size()
18 return (sk->out_phase_peeked >> 16) * s->cfg.frame_size; in usb_stream_next_packet_size()
21 static void playback_prep_freqn(struct usb_stream_kernel *sk, struct urb *urb) in playback_prep_freqn() argument
23 struct usb_stream *s = sk->s; in playback_prep_freqn()
26 for (pack = 0; pack < sk->n_o_ps; pack++) { in playback_prep_freqn()
27 int l = usb_stream_next_packet_size(sk); in playback_prep_freqn()
32 sk->out_phase = sk->out_phase_peeked; in playback_prep_freqn()
44 static int init_pipe_urbs(struct usb_stream_kernel *sk, in init_pipe_urbs() argument
[all …]
/linux/net/mptcp/
H A Dprotocol.c31 static unsigned int mptcp_inq_hint(const struct sock *sk);
50 static void __mptcp_destroy_sock(struct sock *sk);
51 static void mptcp_check_send_data_fin(struct sock *sk);
64 static const struct proto_ops *mptcp_fallback_tcp_ops(const struct sock *sk) in mptcp_fallback_tcp_ops() argument
66 unsigned short family = READ_ONCE(sk->sk_family); in mptcp_fallback_tcp_ops()
107 struct sock *sk = (struct sock *)msk; in __mptcp_socket_create() local
111 err = mptcp_subflow_create_socket(sk, sk->sk_family, &ssock); in __mptcp_socket_create()
115 msk->scaling_ratio = tcp_sk(ssock->sk)->scaling_ratio; in __mptcp_socket_create()
116 WRITE_ONCE(msk->first, ssock->sk); in __mptcp_socket_create()
117 subflow = mptcp_subflow_ctx(ssock->sk); in __mptcp_socket_create()
[all …]

12345678910>>...32