aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2019-12-25 22:18:28 -0700
committerJens Axboe <axboe@kernel.dk>2020-01-20 17:04:02 -0700
commitc1ca757bd6f4632c510714631ddcc2d13030fe1e (patch)
tree7212cc1b906dd229aa82973923039eb929a56479 /include/uapi
parentmm: make do_madvise() available internally (diff)
downloadlinux-dev-c1ca757bd6f4632c510714631ddcc2d13030fe1e.tar.xz
linux-dev-c1ca757bd6f4632c510714631ddcc2d13030fe1e.zip
io_uring: add IORING_OP_MADVISE
This adds support for doing madvise(2) through io_uring. We assume that any operation can block, and hence punt everything async. This could be improved, but hard to make bullet proof. The async punt ensures it's safe. Reviewed-by: Pavel Begunkov <asml.silence@gmail.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/uapi')
-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 f86d1c776078..8ad3cece5440 100644
--- a/include/uapi/linux/io_uring.h
+++ b/include/uapi/linux/io_uring.h
@@ -88,6 +88,7 @@ enum {
IORING_OP_READ,
IORING_OP_WRITE,
IORING_OP_FADVISE,
+ IORING_OP_MADVISE,
/* this goes last, obviously */
IORING_OP_LAST,