summaryrefslogtreecommitdiff
path: root/io_uring/cancel.h
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2022-05-26 05:36:47 +0300
committerJens Axboe <axboe@kernel.dk>2022-07-25 03:39:12 +0300
commit7aaff708a768144ec6459f0a58301be1a6b982fc (patch)
tree9b330a9f284f38ac7bfbf97441fab2db065aeac3 /io_uring/cancel.h
parent329061d3e2f9a0082a097e9558bd5497098586c6 (diff)
downloadlinux-7aaff708a768144ec6459f0a58301be1a6b982fc.tar.xz
io_uring: move cancelation into its own file
This also helps cleanup the io_uring.h cancel parts, as we can make things static in the cancel.c file, mostly. Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_uring/cancel.h')
-rw-r--r--io_uring/cancel.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/io_uring/cancel.h b/io_uring/cancel.h
new file mode 100644
index 000000000000..4f35d8696325
--- /dev/null
+++ b/io_uring/cancel.h
@@ -0,0 +1,6 @@
+// SPDX-License-Identifier: GPL-2.0
+
+int io_async_cancel_prep(struct io_kiocb *req, const struct io_uring_sqe *sqe);
+int io_async_cancel(struct io_kiocb *req, unsigned int issue_flags);
+
+int io_try_cancel(struct io_kiocb *req, struct io_cancel_data *cd);