aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2019-10-15 16:48:15 -0600
committerJens Axboe <axboe@kernel.dk>2019-10-29 10:22:48 -0600
commita41525ab2e75987e809926352ebc6f1397da900e (patch)
treea4f80ed1e7b9705abd0c458f73f6dc1063cad1f3 /include/uapi
parentio_uring: replace s->needs_lock with s->in_async (diff)
downloadlinux-dev-a41525ab2e75987e809926352ebc6f1397da900e.tar.xz
linux-dev-a41525ab2e75987e809926352ebc6f1397da900e.zip
io_uring: add support for absolute timeouts
This is a pretty trivial addition on top of the relative timeouts we have now, but it's handy for ensuring tighter timing for those that are building scheduling primitives on top of io_uring. Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/uapi')
-rw-r--r--include/uapi/linux/io_uring.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/uapi/linux/io_uring.h b/include/uapi/linux/io_uring.h
index e0137ea6ad79..b402dfee5e15 100644
--- a/include/uapi/linux/io_uring.h
+++ b/include/uapi/linux/io_uring.h
@@ -71,6 +71,11 @@ struct io_uring_sqe {
#define IORING_FSYNC_DATASYNC (1U << 0)
/*
+ * sqe->timeout_flags
+ */
+#define IORING_TIMEOUT_ABS (1U << 0)
+
+/*
* IO completion data structure (Completion Queue Entry)
*/
struct io_uring_cqe {