summaryrefslogtreecommitdiff
path: root/include/uapi/linux
diff options
context:
space:
mode:
authorStefano Garzarella <sgarzare@redhat.com>2020-05-15 19:38:05 +0300
committerJens Axboe <axboe@kernel.dk>2020-05-15 21:16:59 +0300
commit7e55a19cf6e70ce08964b46dbbfbdb07fbc995fc (patch)
treec3c822bc6a855e22fa9d1092f7670eb4a1b59274 /include/uapi/linux
parent0d9b5b3af134cddfdc1dd31d41946a0ad389bbf2 (diff)
downloadlinux-7e55a19cf6e70ce08964b46dbbfbdb07fbc995fc.tar.xz
io_uring: add IORING_CQ_EVENTFD_DISABLED to the CQ ring flags
This new flag should be set/clear from the application to disable/enable eventfd notifications when a request is completed and queued to the CQ ring. Before this patch, notifications were always sent if an eventfd is registered, so IORING_CQ_EVENTFD_DISABLED is not set during the initialization. It will be up to the application to set the flag after initialization if no notifications are required at the beginning. Signed-off-by: Stefano Garzarella <sgarzare@redhat.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/uapi/linux')
-rw-r--r--include/uapi/linux/io_uring.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/uapi/linux/io_uring.h b/include/uapi/linux/io_uring.h
index 602bb0ece607..8c5775df08b8 100644
--- a/include/uapi/linux/io_uring.h
+++ b/include/uapi/linux/io_uring.h
@@ -210,6 +210,13 @@ struct io_cqring_offsets {
};
/*
+ * cq_ring->flags
+ */
+
+/* disable eventfd notifications */
+#define IORING_CQ_EVENTFD_DISABLED (1U << 0)
+
+/*
* io_uring_enter(2) flags
*/
#define IORING_ENTER_GETEVENTS (1U << 0)