summaryrefslogtreecommitdiffstats
path: root/io_uring/splice.h
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2022-05-25 05:19:47 +0200
committerJens Axboe <axboe@kernel.dk>2022-07-25 02:39:11 +0200
commit531113bbd5bfc93e8de45440752af11c751e4aaf (patch)
treea4643adc406a76ed1f27d30d3fab96c785620e4e /io_uring/splice.h
parentio_uring: split out filesystem related operations (diff)
downloadlinux-531113bbd5bfc93e8de45440752af11c751e4aaf.tar.xz
linux-531113bbd5bfc93e8de45440752af11c751e4aaf.zip
io_uring: split out splice related operations
This splits out splice and tee support. Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_uring/splice.h')
-rw-r--r--io_uring/splice.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/io_uring/splice.h b/io_uring/splice.h
new file mode 100644
index 000000000000..542f94168ad3
--- /dev/null
+++ b/io_uring/splice.h
@@ -0,0 +1,7 @@
+// SPDX-License-Identifier: GPL-2.0
+
+int io_tee_prep(struct io_kiocb *req, const struct io_uring_sqe *sqe);
+int io_tee(struct io_kiocb *req, unsigned int issue_flags);
+
+int io_splice_prep(struct io_kiocb *req, const struct io_uring_sqe *sqe);
+int io_splice(struct io_kiocb *req, unsigned int issue_flags);