aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/io_uring.h
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2019-10-16 09:08:32 -0600
committerJens Axboe <axboe@kernel.dk>2019-10-29 10:22:50 -0600
commit11365043e5271fea4c92189a976833da477a3a44 (patch)
treea96e04551570765be2d332cd8d102b8f3f69346a /include/uapi/linux/io_uring.h
parentio_uring: add support for absolute timeouts (diff)
downloadlinux-dev-11365043e5271fea4c92189a976833da477a3a44.tar.xz
linux-dev-11365043e5271fea4c92189a976833da477a3a44.zip
io_uring: add support for canceling timeout requests
We might have cases where the need for a specific timeout is gone, add support for canceling an existing timeout operation. This works like the POLL_REMOVE command, where the application passes in the user_data of the timeout it wishes to cancel in the sqe->addr field. 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 b402dfee5e15..6dc5ced1c37a 100644
--- a/include/uapi/linux/io_uring.h
+++ b/include/uapi/linux/io_uring.h
@@ -64,6 +64,7 @@ struct io_uring_sqe {
#define IORING_OP_SENDMSG 9
#define IORING_OP_RECVMSG 10
#define IORING_OP_TIMEOUT 11
+#define IORING_OP_TIMEOUT_REMOVE 12
/*
* sqe->fsync_flags