summaryrefslogtreecommitdiff
path: root/io_uring/advise.h
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2022-05-24 21:28:33 -0600
committerJens Axboe <axboe@kernel.dk>2022-07-24 18:39:11 -0600
commitf4c163dd7d4b1031772317cd3cd58dd6711ee51e (patch)
tree68eb0282a59338b40ac1a0fc801d1a1cf87585c2 /io_uring/advise.h
parent0d58472740370108f8ece9076d79f736f53b5b77 (diff)
downloadlwn-f4c163dd7d4b1031772317cd3cd58dd6711ee51e.tar.gz
lwn-f4c163dd7d4b1031772317cd3cd58dd6711ee51e.zip
io_uring: split out fadvise/madvise operations
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_uring/advise.h')
-rw-r--r--io_uring/advise.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/io_uring/advise.h b/io_uring/advise.h
new file mode 100644
index 000000000000..5ece2a045185
--- /dev/null
+++ b/io_uring/advise.h
@@ -0,0 +1,7 @@
+// SPDX-License-Identifier: GPL-2.0
+
+int io_madvise_prep(struct io_kiocb *req, const struct io_uring_sqe *sqe);
+int io_madvise(struct io_kiocb *req, unsigned int issue_flags);
+
+int io_fadvise_prep(struct io_kiocb *req, const struct io_uring_sqe *sqe);
+int io_fadvise(struct io_kiocb *req, unsigned int issue_flags);