Home
last modified time | relevance | path

Searched refs:MSG_DONTWAIT (Results 1 – 25 of 114) sorted by relevance

12345

/Linux-v5.15/net/phonet/
Ddatagram.c79 if (msg->msg_flags & ~(MSG_DONTWAIT|MSG_EOR|MSG_NOSIGNAL| in pn_sendmsg()
93 msg->msg_flags & MSG_DONTWAIT, &err); in pn_sendmsg()
122 if (flags & ~(MSG_PEEK|MSG_TRUNC|MSG_DONTWAIT|MSG_NOSIGNAL| in pn_recvmsg()
Dpep.c1122 if ((msg->msg_flags & ~(MSG_DONTWAIT|MSG_EOR|MSG_NOSIGNAL| in pep_sendmsg()
1128 flags & MSG_DONTWAIT, &err); in pep_sendmsg()
1138 timeo = sock_sndtimeo(sk, flags & MSG_DONTWAIT); in pep_sendmsg()
1243 if (flags & ~(MSG_OOB|MSG_PEEK|MSG_TRUNC|MSG_DONTWAIT|MSG_WAITALL| in pep_recvmsg()
/Linux-v5.15/net/xfrm/
Despintcp.c142 flags |= nonblock ? MSG_DONTWAIT : 0; in espintcp_recvmsg()
271 return flags & MSG_DONTWAIT ? -EAGAIN : 0; in espintcp_push_msgs()
317 long timeo = sock_sndtimeo(sk, msg->msg_flags & MSG_DONTWAIT); in espintcp_sendmsg()
326 if (msg->msg_flags & ~MSG_DONTWAIT) in espintcp_sendmsg()
337 err = espintcp_push_msgs(sk, msg->msg_flags & MSG_DONTWAIT); in espintcp_sendmsg()
339 if (err != -EAGAIN || !(msg->msg_flags & MSG_DONTWAIT)) in espintcp_sendmsg()
377 err = espintcp_push_msgs(sk, msg->msg_flags & MSG_DONTWAIT); in espintcp_sendmsg()
/Linux-v5.15/tools/testing/selftests/net/
Dudpgso_bench_rx.c171 ret = recv(fd, NULL, 1 << 21, MSG_TRUNC | MSG_DONTWAIT); in do_flush_tcp()
234 ret = recvmsg(fd, &msg, MSG_TRUNC | MSG_DONTWAIT); in recv_msg()
259 ret = recv(fd, rbuf, len, MSG_TRUNC | MSG_DONTWAIT); in do_flush_udp()
Dmsg_zerocopy.c193 flags = MSG_DONTWAIT; in do_sendmsg()
371 if (recvmsg(fd, &msg, MSG_DONTWAIT)) in do_recvmsg_completion()
609 ret = recv(fd, NULL, 1 << 21, MSG_TRUNC | MSG_DONTWAIT); in do_flush_tcp()
628 ret = recv(fd, buf, sizeof(buf), MSG_DONTWAIT | MSG_TRUNC); in do_flush_datagram()
Dudpgso.c497 if (ret == -1 && errno == EAGAIN && (flags & MSG_DONTWAIT)) in recv_one()
552 ret = recv_one(fdr, MSG_DONTWAIT); in run_one()
/Linux-v5.15/net/rds/
Dtcp_send.c63 .msg_flags = MSG_DONTWAIT | MSG_NOSIGNAL, in rds_tcp_sendmsg()
116 int flags = MSG_DONTWAIT | MSG_NOSIGNAL | more; in rds_tcp_xmit()
/Linux-v5.15/net/mctp/
Daf_mctp.c106 msg->msg_flags & MSG_DONTWAIT, &rc); in mctp_sendmsg()
141 if (flags & ~(MSG_DONTWAIT | MSG_TRUNC | MSG_PEEK)) in mctp_recvmsg()
144 skb = skb_recv_datagram(sk, flags, flags & MSG_DONTWAIT, &rc); in mctp_recvmsg()
/Linux-v5.15/net/caif/
Dcaif_socket.c370 timeo = sock_rcvtimeo(sk, flags&MSG_DONTWAIT); in caif_stream_recvmsg()
545 noblock = msg->msg_flags & MSG_DONTWAIT; in caif_seqpkt_sendmsg()
611 timeo = sock_sndtimeo(sk, msg->msg_flags & MSG_DONTWAIT); in caif_stream_sendmsg()
634 msg->msg_flags&MSG_DONTWAIT, in caif_stream_sendmsg()
655 msg->msg_flags&MSG_DONTWAIT, timeo); in caif_stream_sendmsg()
/Linux-v5.15/drivers/infiniband/sw/siw/
Dsiw_qp_tx.c329 flags = MSG_MORE | MSG_DONTWAIT | MSG_SENDPAGE_NOTLAST; in siw_tcp_sendpages()
335 flags = MSG_MORE | MSG_DONTWAIT; in siw_tcp_sendpages()
437 struct msghdr msg = { .msg_flags = MSG_DONTWAIT | MSG_EOR }; in siw_tx_hdt()
447 rv = siw_tx_ctrl(c_tx, s, MSG_DONTWAIT | MSG_MORE); in siw_tx_hdt()
874 msg_flags = MSG_DONTWAIT; in siw_qp_sq_proc_tx()
876 msg_flags = MSG_DONTWAIT | MSG_MORE; in siw_qp_sq_proc_tx()
/Linux-v5.15/net/unix/
Daf_unix.c1812 msg->msg_flags & MSG_DONTWAIT, &err, in unix_dgram_sendmsg()
1828 timeo = sock_sndtimeo(sk, msg->msg_flags & MSG_DONTWAIT); in unix_dgram_sendmsg()
1971 skb = sock_alloc_send_skb(sock->sk, 1, msg->msg_flags & MSG_DONTWAIT, &err); in queue_oob()
2065 msg->msg_flags & MSG_DONTWAIT, &err, in unix_stream_sendmsg()
2147 newskb = sock_alloc_send_pskb(sk, 0, 0, flags & MSG_DONTWAIT, in unix_stream_sendpage()
2158 err = flags & MSG_DONTWAIT ? -EAGAIN : -ERESTARTSYS; in unix_stream_sendpage()
2297 timeo = sock_rcvtimeo(sk, flags & MSG_DONTWAIT); in __unix_dgram_recvmsg()
2398 return prot->recvmsg(sk, msg, size, flags & MSG_DONTWAIT, in unix_dgram_recvmsg()
2399 flags & ~MSG_DONTWAIT, NULL); in unix_dgram_recvmsg()
2586 int noblock = flags & MSG_DONTWAIT; in unix_stream_read_generic()
[all …]
/Linux-v5.15/drivers/nvme/target/
Dtcp.c578 left, MSG_DONTWAIT | MSG_MORE | MSG_SENDPAGE_NOTLAST); in nvmet_try_send_data_pdu()
601 int flags = MSG_DONTWAIT; in nvmet_try_send_data()
649 int flags = MSG_DONTWAIT; in nvmet_try_send_response()
678 int flags = MSG_DONTWAIT; in nvmet_try_send_r2t()
703 struct msghdr msg = { .msg_flags = MSG_DONTWAIT }; in nvmet_try_send_ddgst()
1065 struct msghdr msg = { .msg_flags = MSG_DONTWAIT }; in nvmet_tcp_try_recv_pdu()
1155 struct msghdr msg = { .msg_flags = MSG_DONTWAIT }; in nvmet_tcp_try_recv_ddgst()
1333 c->recv_msg.msg_flags = MSG_DONTWAIT | MSG_NOSIGNAL; in nvmet_tcp_alloc_cmd()
/Linux-v5.15/net/core/
Ddatagram.c276 sk_busy_loop(sk, flags & MSG_DONTWAIT); in __skb_try_recv_datagram()
294 timeo = sock_rcvtimeo(sk, flags & MSG_DONTWAIT); in __skb_recv_datagram()
318 flags | (noblock ? MSG_DONTWAIT : 0), in skb_recv_datagram()
/Linux-v5.15/net/x25/
Dx25_out.c52 int sent=0, noblock = X25_SKB_CB(skb)->flags & MSG_DONTWAIT; in x25_output()
/Linux-v5.15/net/can/
Draw.c808 msg->msg_flags & MSG_DONTWAIT, &err); in raw_sendmsg()
851 noblock = flags & MSG_DONTWAIT; in raw_recvmsg()
852 flags &= ~MSG_DONTWAIT; in raw_recvmsg()
/Linux-v5.15/net/rxrpc/
Dsendmsg.c302 timeo = sock_sndtimeo(sk, msg->msg_flags & MSG_DONTWAIT); in rxrpc_send_data()
336 if (msg->msg_flags & MSG_DONTWAIT) in rxrpc_send_data()
359 sk, bufsize, msg->msg_flags & MSG_DONTWAIT, &ret); in rxrpc_send_data()
/Linux-v5.15/net/decnet/
Daf_decnet.c1682 long timeo = sock_rcvtimeo(sk, flags & MSG_DONTWAIT); in dn_recvmsg()
1700 if (flags & ~(MSG_CMSG_COMPAT|MSG_PEEK|MSG_OOB|MSG_WAITALL|MSG_DONTWAIT|MSG_NOSIGNAL)) { in dn_recvmsg()
1742 if (flags & MSG_DONTWAIT) { in dn_recvmsg()
1923 if (flags & ~(MSG_TRYHARD|MSG_OOB|MSG_DONTWAIT|MSG_EOR|MSG_NOSIGNAL|MSG_MORE|MSG_CMSG_COMPAT)) in dn_sendmsg()
1930 timeo = sock_sndtimeo(sk, flags & MSG_DONTWAIT); in dn_sendmsg()
1999 if (flags & MSG_DONTWAIT) { in dn_sendmsg()
2020 flags & MSG_DONTWAIT, &err); in dn_sendmsg()
/Linux-v5.15/net/qrtr/
Dqrtr.c905 if (msg->msg_flags & ~(MSG_DONTWAIT)) in qrtr_sendmsg()
957 msg->msg_flags & MSG_DONTWAIT, &rc); in qrtr_sendmsg()
1038 skb = skb_recv_datagram(sk, flags & ~MSG_DONTWAIT, in qrtr_recvmsg()
1039 flags & MSG_DONTWAIT, &rc); in qrtr_recvmsg()
/Linux-v5.15/net/kcm/
Dkcmsock.c649 MSG_DONTWAIT); in kcm_write_msgs()
762 long timeo = sock_sndtimeo(sk, flags & MSG_DONTWAIT); in kcm_sendpage()
904 long timeo = sock_sndtimeo(sk, msg->msg_flags & MSG_DONTWAIT); in kcm_sendmsg()
1096 if ((flags & MSG_DONTWAIT) || !timeo) { in kcm_wait_data()
1124 timeo = sock_rcvtimeo(sk, flags & MSG_DONTWAIT); in kcm_recvmsg()
1184 timeo = sock_rcvtimeo(sk, flags & MSG_DONTWAIT); in kcm_splice_read()
/Linux-v5.15/samples/bpf/
Dxdpsock_user.c1118 ret = sendto(xsk_socket__fd(xsk->xsk), NULL, 0, MSG_DONTWAIT, NULL, 0); in kick_tx()
1160 recvfrom(xsk_socket__fd(xsk->xsk), NULL, 0, MSG_DONTWAIT, NULL, in complete_tx_l2fwd()
1207 recvfrom(xsk_socket__fd(xsk->xsk), NULL, 0, MSG_DONTWAIT, NULL, NULL); in rx_drop()
1218 recvfrom(xsk_socket__fd(xsk->xsk), NULL, 0, MSG_DONTWAIT, NULL, NULL); in rx_drop()
1372 recvfrom(xsk_socket__fd(xsk->xsk), NULL, 0, MSG_DONTWAIT, NULL, NULL); in l2fwd()
/Linux-v5.15/net/netrom/
Daf_netrom.c1043 if (msg->msg_flags & ~(MSG_DONTWAIT|MSG_EOR|MSG_CMSG_COMPAT)) in nr_sendmsg()
1095 if ((skb = sock_alloc_send_skb(sk, size, msg->msg_flags & MSG_DONTWAIT, &err)) == NULL) in nr_sendmsg()
1162 if ((skb = skb_recv_datagram(sk, flags & ~MSG_DONTWAIT, flags & MSG_DONTWAIT, &er)) == NULL) { in nr_recvmsg()
/Linux-v5.15/net/atm/
Dcommon.c534 if (flags & ~(MSG_DONTWAIT | MSG_PEEK)) in vcc_recvmsg()
543 skb = skb_recv_datagram(sk, flags, flags & MSG_DONTWAIT, &error); in vcc_recvmsg()
606 if (m->msg_flags & MSG_DONTWAIT) { in vcc_sendmsg()
/Linux-v5.15/net/tls/
Dtls_sw.c926 long timeo = sock_sndtimeo(sk, msg->msg_flags & MSG_DONTWAIT); in tls_sw_sendmsg()
947 if (msg->msg_flags & ~(MSG_MORE | MSG_DONTWAIT | MSG_NOSIGNAL | in tls_sw_sendmsg()
1151 long timeo = sock_sndtimeo(sk, flags & MSG_DONTWAIT); in tls_sw_do_sendpage()
1267 if (flags & ~(MSG_MORE | MSG_DONTWAIT | MSG_NOSIGNAL | in tls_sw_sendpage_locked()
1281 if (flags & ~(MSG_MORE | MSG_DONTWAIT | MSG_NOSIGNAL | in tls_sw_sendpage()
1789 timeo = sock_rcvtimeo(sk, flags & MSG_DONTWAIT); in tls_sw_recvmsg()
1799 skb = tls_wait_data(sk, psock, flags & MSG_DONTWAIT, timeo, &err); in tls_sw_recvmsg()
/Linux-v5.15/net/bluetooth/
Daf_bluetooth.c254 int noblock = flags & MSG_DONTWAIT; in bt_sock_recvmsg()
348 timeo = sock_rcvtimeo(sk, flags & MSG_DONTWAIT); in bt_sock_stream_recvmsg()
/Linux-v5.15/net/tipc/
Dtopsrv.c268 msg.msg_flags = MSG_DONTWAIT; in tipc_conn_send_to_sock()
398 ret = sock_recvmsg(con->sock, &msg, MSG_DONTWAIT); in tipc_conn_rcv_from_sock()

12345