summaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/io_uring.h
diff options
context:
space:
mode:
authorJens Axboe2019-04-19 21:38:09 +0200
committerJens Axboe2019-07-09 22:32:14 +0200
commitaa1fa28fc73ea6b740ee7b62bf3b07141883dbb8 (patch)
tree85963ae2cf72deda9bea41efd9492c94e9344b8b /include/uapi/linux/io_uring.h
parentio_uring: add support for sendmsg() (diff)
downloadkernel-qcow2-linux-aa1fa28fc73ea6b740ee7b62bf3b07141883dbb8.tar.gz
kernel-qcow2-linux-aa1fa28fc73ea6b740ee7b62bf3b07141883dbb8.tar.xz
kernel-qcow2-linux-aa1fa28fc73ea6b740ee7b62bf3b07141883dbb8.zip
io_uring: add support for recvmsg()
This is done through IORING_OP_RECVMSG. This opcode uses the same sqe->msg_flags that IORING_OP_SENDMSG added, and we pass in the msghdr struct in the sqe->addr field as well. We use MSG_DONTWAIT to force an inline fast path if recvmsg() doesn't block, and punt to async execution if it would have. Acked-by: David S. Miller <davem@davemloft.net> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/uapi/linux/io_uring.h')
-rw-r--r--include/uapi/linux/io_uring.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/linux/io_uring.h b/include/uapi/linux/io_uring.h
index d74742d6269f..1e1652f25cc1 100644
--- a/include/uapi/linux/io_uring.h
+++ b/include/uapi/linux/io_uring.h
@@ -60,6 +60,7 @@ struct io_uring_sqe {
#define IORING_OP_POLL_REMOVE 7
#define IORING_OP_SYNC_FILE_RANGE 8
#define IORING_OP_SENDMSG 9
+#define IORING_OP_RECVMSG 10
/*
* sqe->fsync_flags