Home
last modified time | relevance | path

Searched refs:sock_flag (Results 1 – 25 of 106) sorted by relevance

12345

/kernel/linux/linux-5.10/net/ax25/
Dax25_std_timer.c41 if (!sk || sock_flag(sk, SOCK_DESTROY) || in ax25_std_heartbeat_expiry()
43 sock_flag(sk, SOCK_DEAD))) { in ax25_std_heartbeat_expiry()
112 if (!sock_flag(ax25->sk, SOCK_DEAD)) { in ax25_std_idletimer_expiry()
146 if (!sock_flag(ax25->sk, SOCK_DESTROY)) in ax25_std_t1timer_expiry()
Dax25_ds_timer.c104 if (!sk || sock_flag(sk, SOCK_DESTROY) || in ax25_ds_heartbeat_expiry()
106 sock_flag(sk, SOCK_DEAD))) { in ax25_ds_heartbeat_expiry()
172 if (!sock_flag(ax25->sk, SOCK_DEAD)) { in ax25_ds_idletimer_expiry()
214 if (!sock_flag(ax25->sk, SOCK_DESTROY)) in ax25_ds_t1_timeout()
Dax25_subr.c271 if (!ax25->sk || !sock_flag(ax25->sk, SOCK_DESTROY)) in ax25_disconnect()
289 if (!sock_flag(ax25->sk, SOCK_DEAD)) { in ax25_disconnect()
/kernel/linux/linux-5.10/net/decnet/
Ddn_nsp_in.c121 if (wakeup && !sock_flag(sk, SOCK_DEAD)) in dn_ack()
371 if (!sock_flag(sk, SOCK_DEAD)) in dn_nsp_conn_conf()
433 if (!sock_flag(sk, SOCK_DEAD)) { in dn_nsp_disc_init()
491 if (!sock_flag(sk, SOCK_DEAD)) { in dn_nsp_disc_conf()
563 if (wake_up && !sock_flag(sk, SOCK_DEAD)) in dn_nsp_linkservice()
598 if (!sock_flag(sk, SOCK_DEAD)) in dn_queue_skb()
675 if (!sock_flag(sk, SOCK_DEAD)) in dn_returned_conn_init()
860 if ((scp->state == DN_CC) && !sock_flag(sk, SOCK_DEAD)) { in dn_nsp_backlog_rcv()
/kernel/linux/linux-5.10/net/rose/
Drose_timer.c129 if (sock_flag(sk, SOCK_DESTROY) || in rose_heartbeat_expiry()
130 (sk->sk_state == TCP_LISTEN && sock_flag(sk, SOCK_DEAD))) { in rose_heartbeat_expiry()
206 if (!sock_flag(sk, SOCK_DEAD)) { in rose_idletimer_expiry()
/kernel/linux/linux-5.10/net/core/
Dsock.c324 BUG_ON(!sock_flag(sk, SOCK_MEMALLOC)); in __sk_backlog_rcv()
467 if (!sock_flag(sk, SOCK_DEAD)) in __sock_queue_rcv_skb()
1114 if (sock_flag(sk, SOCK_FILTER_LOCKED) && !valbool) in sock_setsockopt()
1322 v.val = sock_flag(sk, SOCK_DBG); in sock_getsockopt()
1326 v.val = sock_flag(sk, SOCK_LOCALROUTE); in sock_getsockopt()
1330 v.val = sock_flag(sk, SOCK_BROADCAST); in sock_getsockopt()
1350 v.val = sock_flag(sk, SOCK_KEEPOPEN); in sock_getsockopt()
1372 v.val = sock_flag(sk, SOCK_URGINLINE); in sock_getsockopt()
1385 v.ling.l_onoff = sock_flag(sk, SOCK_LINGER); in sock_getsockopt()
1393 v.val = sock_flag(sk, SOCK_RCVTSTAMP) && in sock_getsockopt()
[all …]
/kernel/linux/linux-5.10/net/netrom/
Dnr_timer.c122 if (sock_flag(sk, SOCK_DESTROY) || in nr_heartbeat_expiry()
123 (sk->sk_state == TCP_LISTEN && sock_flag(sk, SOCK_DEAD))) { in nr_heartbeat_expiry()
197 if (!sock_flag(sk, SOCK_DEAD)) { in nr_idletimer_expiry()
/kernel/linux/common_modules/newip/third_party/linux-5.10/net/newip/
Dtcp_nip_timer.c130 if (sock_flag(sk, SOCK_DEAD)) { in tcp_nip_write_timeout()
236 if (sock_flag(sk, SOCK_DEAD)) { in tcp_nip_probe_timer()
365 sock_flag(sk, SOCK_DEAD)) { in tcp_nip_keepalive_timer()
370 if (!sock_flag(sk, SOCK_KEEPOPEN) || in tcp_nip_keepalive_timer()
/kernel/linux/linux-5.10/net/x25/
Dx25_timer.c106 if (sock_flag(sk, SOCK_DESTROY) || in x25_heartbeat_expiry()
108 sock_flag(sk, SOCK_DEAD))) { in x25_heartbeat_expiry()
Dx25_in.c76 if (!sock_flag(sk, SOCK_DEAD)) in x25_queue_rx_frame()
136 if (!sock_flag(sk, SOCK_DEAD)) in x25_state1_machine()
314 if (sock_flag(sk, SOCK_URGINLINE)) in x25_state3_machine()
/kernel/linux/linux-5.10/net/ipv4/
Dtcp_timer.c253 if (sock_flag(sk, SOCK_DEAD)) { in tcp_write_timeout()
384 if (sock_flag(sk, SOCK_DEAD)) { in tcp_probe_timer()
477 if (!tp->snd_wnd && !sock_flag(sk, SOCK_DEAD) && in tcp_retransmit_timer()
665 if (val && !sock_flag(sk, SOCK_KEEPOPEN)) in tcp_set_keepalive()
694 if (sk->sk_state == TCP_FIN_WAIT2 && sock_flag(sk, SOCK_DEAD)) { in tcp_keepalive_timer()
707 if (!sock_flag(sk, SOCK_KEEPOPEN) || in tcp_keepalive_timer()
Dtcp.c561 !sock_flag(sk, SOCK_URGINLINE) && in tcp_poll()
809 if (sock_flag(sk, SOCK_DONE)) in tcp_splice_read()
1204 if (flags & MSG_ZEROCOPY && size && sock_flag(sk, SOCK_ZEROCOPY)) { in tcp_sendmsg_locked()
1465 if (sock_flag(sk, SOCK_URGINLINE) || !tp->urg_data || in tcp_recv_urg()
1469 if (sk->sk_state == TCP_CLOSE && !sock_flag(sk, SOCK_DONE)) in tcp_recv_urg()
1977 if (!zc->recv_skip_hint && sock_flag(sk, SOCK_DONE)) in tcp_zerocopy_receive()
2003 int new_tstamp = sock_flag(sk, SOCK_TSTAMP_NEW); in tcp_recv_timestamp()
2007 if (sock_flag(sk, SOCK_RCVTSTAMP)) { in tcp_recv_timestamp()
2008 if (sock_flag(sk, SOCK_RCVTSTAMPNS)) { in tcp_recv_timestamp()
2058 if (sock_flag(sk, SOCK_TSTAMP_NEW)) in tcp_recv_timestamp()
[all …]
/kernel/linux/linux-5.10/net/smc/
Dsmc_rx.c67 if (sock_flag(sk, SOCK_URGINLINE)) { in smc_rx_update_consumer()
225 if (sock_flag(sk, SOCK_URGINLINE) || in smc_rx_recv_urg()
340 if (!sock_flag(sk, SOCK_DONE)) { in smc_rx_recvmsg()
381 sock_flag(&smc->sk, SOCK_URGINLINE) && in smc_rx_recvmsg()
Dsmc_close.c201 0 : sock_flag(sk, SOCK_LINGER) ? in smc_close_active()
391 if (sock_flag(sk, SOCK_DEAD) && in smc_close_passive_work()
428 (sock_flag(sk, SOCK_DEAD) || !sk->sk_socket)) { in smc_close_passive_work()
449 0 : sock_flag(sk, SOCK_LINGER) ? in smc_close_shutdown_write()
/kernel/linux/linux-5.10/net/llc/
Daf_llc.c214 if (!sock_flag(sk, SOCK_ZAPPED)) { in llc_ui_release()
283 if (!sock_flag(sk, SOCK_ZAPPED)) in llc_ui_autobind()
348 if (unlikely(!sock_flag(sk, SOCK_ZAPPED) || addrlen != sizeof(*addr))) in llc_ui_bind()
497 if (sock_flag(sk, SOCK_ZAPPED)) { in llc_ui_connect()
562 if (sock_flag(sk, SOCK_ZAPPED)) in llc_ui_listen()
821 if (sock_flag(sk, SOCK_DONE)) in llc_ui_recvmsg()
832 if (!sock_flag(sk, SOCK_DONE)) { in llc_ui_recvmsg()
949 if (sock_flag(sk, SOCK_ZAPPED)) { in llc_ui_sendmsg()
1024 if (sock_flag(sk, SOCK_ZAPPED)) in llc_ui_getname()
/kernel/linux/linux-5.10/net/can/
Disotp.c173 if (!sock_flag(sk, SOCK_DEAD)) in isotp_rx_timer_handler()
344 if (!sock_flag(sk, SOCK_DEAD)) in isotp_rcv_fc()
397 if (!sock_flag(sk, SOCK_DEAD)) in isotp_rcv_fc()
425 if (!sock_flag(sk, SOCK_DEAD)) in isotp_rcv_sf()
540 if (!sock_flag(sk, SOCK_DEAD)) in isotp_rcv_cf()
564 if (!sock_flag(sk, SOCK_DEAD)) in isotp_rcv_cf()
772 if (!sock_flag(sk, SOCK_DEAD)) in isotp_tx_timer_handler()
1199 if (!sock_flag(sk, SOCK_DEAD)) in isotp_bind()
1406 if (!sock_flag(sk, SOCK_DEAD)) in isotp_notify()
1412 if (!sock_flag(sk, SOCK_DEAD)) in isotp_notify()
/kernel/linux/linux-5.10/net/caif/
Dcaif_socket.c153 queued = !sock_flag(sk, SOCK_DEAD); in caif_queue_rcv_skb()
320 sock_flag(sk, SOCK_DEAD) || in caif_stream_data_wait()
331 if (sock_flag(sk, SOCK_DEAD)) in caif_stream_data_wait()
377 if (sock_flag(sk, SOCK_DEAD)) { in caif_stream_recvmsg()
400 if (sock_flag(sk, SOCK_DEAD)) in caif_stream_recvmsg()
555 sock_flag(sk, SOCK_DEAD) || in caif_seqpkt_sendmsg()
1018 if (!sock_flag(sk, SOCK_DEAD)) { in caif_sock_destructor()
/kernel/linux/linux-5.10/net/l2tp/
Dl2tp_ip.c262 if (!sock_flag(sk, SOCK_ZAPPED)) in l2tp_ip_bind()
319 if (sock_flag(sk, SOCK_ZAPPED)) { in l2tp_ip_connect()
343 if (sock_flag(sk, SOCK_ZAPPED)) in l2tp_ip_disconnect()
408 if (sock_flag(sk, SOCK_DEAD)) in l2tp_ip_sendmsg()
/kernel/linux/linux-5.10/net/rds/
Drecv.c376 if (!sock_flag(sk, SOCK_DEAD)) { in rds_recv_incoming()
382 if (sock_flag(sk, SOCK_RCVTSTAMP)) in rds_recv_incoming()
553 sock_flag(rds_rs_to_sk(rs), SOCK_RCVTSTAMP)) { in rds_cmsg_recv()
557 if (!sock_flag(rds_rs_to_sk(rs), SOCK_TSTAMP_NEW)) { in rds_cmsg_recv()
608 if (!sock_flag(rds_rs_to_sk(rs), SOCK_ZEROCOPY) || in rds_recvmsg_zcookie()
/kernel/linux/linux-5.10/net/unix/
Daf_unix.c441 if (unix_recvq_full_lockless(other) && !sock_flag(other, SOCK_DEAD)) in unix_dgram_peer_wake_me()
485 if (!sock_flag(other, SOCK_DEAD) && unix_peer(other) == sk) { in unix_dgram_disconnected()
501 if (!sock_flag(sk, SOCK_DEAD)) { in unix_sock_destructor()
1180 if (sock_flag(other, SOCK_DEAD)) { in unix_dgram_connect()
1237 sched = !sock_flag(other, SOCK_DEAD) && in unix_wait_for_peer()
1303 if (sock_flag(other, SOCK_DEAD)) { in unix_stream_connect()
1784 if (unlikely(sock_flag(other, SOCK_DEAD))) { in unix_dgram_sendmsg()
1863 if (sock_flag(other, SOCK_RCVTSTAMP)) in unix_dgram_sendmsg()
1964 if (sock_flag(other, SOCK_DEAD) || in unix_stream_sendmsg()
2037 if (sock_flag(other, SOCK_DEAD) || in unix_stream_sendpage()
[all …]
/kernel/linux/linux-5.10/include/net/
Dsock.h84 #define SOCK_DEBUG(sk, msg...) do { if ((sk) && sock_flag((sk), SOCK_DBG)) \
927 static inline bool sock_flag(const struct sock *sk, enum sock_flags flag) in sock_flag() function
1030 if (skb_pfmemalloc(skb) && !sock_flag(sk, SOCK_MEMALLOC)) in sk_add_backlog()
2313 !sock_flag(sk, SOCK_FASYNC)) in sk_set_bit()
2322 !sock_flag(sk, SOCK_FASYNC)) in sk_clear_bit()
2330 if (sock_flag(sk, SOCK_FASYNC)) { in sk_wake_async()
2448 SOCK_SKB_CB(skb)->dropcount = sock_flag(sk, SOCK_RXQ_OVFL) ? in sock_skb_set_dropcount()
2504 if (sock_flag(sk, SOCK_RCVTSTAMP) || in sock_recv_timestamp()
2513 if (sock_flag(sk, SOCK_WIFI_STATUS) && skb->wifi_acked_valid) in sock_recv_timestamp()
2531 else if (unlikely(sock_flag(sk, SOCK_TIMESTAMP))) in sock_recv_ts_and_drops()
[all …]
/kernel/linux/linux-5.10/net/phonet/
Dpep.c350 if (!sock_flag(sk, SOCK_DEAD)) in pipe_do_rcv()
454 if (!sock_flag(sk, SOCK_DEAD)) in pipe_do_rcv()
578 if (!sock_flag(sk, SOCK_DEAD)) in pipe_handler_do_rcv()
585 if (!sock_flag(sk, SOCK_DEAD)) in pipe_handler_do_rcv()
686 if (!sock_flag(sk, SOCK_DEAD)) in pep_do_rcv()
933 if (sock_flag(sk, SOCK_URGINLINE) && in pep_ioctl()
1253 if ((flags & MSG_OOB) || sock_flag(sk, SOCK_URGINLINE)) { in pep_recvmsg()
/kernel/linux/linux-5.10/net/vmw_vsock/
Dvirtio_transport_common.c762 sock_flag(sk, SOCK_DONE), &wait)) in virtio_transport_wait_close()
801 if (!sock_flag(sk, SOCK_DONE)) { in virtio_transport_close_timeout()
831 if (sock_flag(sk, SOCK_LINGER) && !(current->flags & PF_EXITING)) in virtio_transport_close()
834 if (sock_flag(sk, SOCK_DONE)) { in virtio_transport_close()
967 !sock_flag(sk, SOCK_DONE)) { in virtio_transport_recv_connected()
1146 if (sock_flag(sk, SOCK_DONE)) { in virtio_transport_recv_pkt()
/kernel/linux/linux-5.10/net/qrtr/
Dqrtr.c780 if (!sock_flag(sk, SOCK_ZAPPED)) in qrtr_autobind()
805 rc = __qrtr_bind(sock, addr, sock_flag(sk, SOCK_ZAPPED)); in qrtr_bind()
1006 if (sock_flag(sk, SOCK_ZAPPED)) { in qrtr_recvmsg()
1182 if (!sock_flag(sk, SOCK_DEAD)) in qrtr_release()
1189 if (!sock_flag(sk, SOCK_ZAPPED)) in qrtr_release()
/kernel/linux/linux-5.10/net/can/j1939/
Dsocket.c231 } else if (!sock_flag(&jsk->sk, SOCK_BROADCAST)) { in j1939_sk_match_dst()
549 !sock_flag(&jsk->sk, SOCK_BROADCAST)) { in j1939_sk_connect()
1167 !sock_flag(sk, SOCK_BROADCAST)) { in j1939_sk_sendmsg()
1174 !sock_flag(sk, SOCK_BROADCAST)) { in j1939_sk_sendmsg()
1197 if (!sock_flag(&jsk->sk, SOCK_DEAD)) in j1939_sk_netdev_event_netdown()

12345