summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2022-04-15 19:43:37 -0600
committerJens Axboe <axboe@kernel.dk>2022-04-15 19:43:37 -0600
commitcdc632f1145f4862bbfe443b4329cc82bd847469 (patch)
tree891c991e91014c5f7a8372af98da79c9ff629c55
parent7983bed070cbea274edc6224d7fb2137c82e3854 (diff)
downloadliburing-cdc632f1145f4862bbfe443b4329cc82bd847469.tar.gz
liburing-cdc632f1145f4862bbfe443b4329cc82bd847469.tar.bz2
io_uring: add new cancel flags
Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r--src/include/liburing/io_uring.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/include/liburing/io_uring.h b/src/include/liburing/io_uring.h
index bfb3548..2816f6c 100644
--- a/src/include/liburing/io_uring.h
+++ b/src/include/liburing/io_uring.h
@@ -192,6 +192,16 @@ enum {
#define IORING_POLL_UPDATE_USER_DATA (1U << 2)
/*
+ * ASYNC_CANCEL flags.
+ *
+ * IORING_ASYNC_CANCEL_ALL Cancel all requests that match the given key
+ * IORING_ASYNC_CANCEL_FD Key off 'fd' for cancelation rather than the
+ * request 'user_data'
+ */
+#define IORING_ASYNC_CANCEL_ALL (1U << 0)
+#define IORING_ASYNC_CANCEL_FD (1U << 1)
+
+/*
* IO completion data structure (Completion Queue Entry)
*/
struct io_uring_cqe {