aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2019-12-11 11:20:36 -0700
committerJens Axboe <axboe@kernel.dk>2020-01-20 17:01:53 -0700
commit15b71abe7b52df214785dde0de9f581cc0216d17 (patch)
tree7c8e918a0ef6654eac0166ff57e324a8780786a6 /include/uapi
parentfs: make build_open_flags() available internally (diff)
downloadlinux-dev-15b71abe7b52df214785dde0de9f581cc0216d17.tar.xz
linux-dev-15b71abe7b52df214785dde0de9f581cc0216d17.zip
io_uring: add support for IORING_OP_OPENAT
This works just like openat(2), except it can be performed async. For the normal case of a non-blocking path lookup this will complete inline. If we have to do IO to perform the open, it'll be done from async context. Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/uapi')
-rw-r--r--include/uapi/linux/io_uring.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/uapi/linux/io_uring.h b/include/uapi/linux/io_uring.h
index ad1574f35eb3..c1a7c1c65eaf 100644
--- a/include/uapi/linux/io_uring.h
+++ b/include/uapi/linux/io_uring.h
@@ -34,6 +34,7 @@ struct io_uring_sqe {
__u32 timeout_flags;
__u32 accept_flags;
__u32 cancel_flags;
+ __u32 open_flags;
};
__u64 user_data; /* data to be passed back at completion time */
union {
@@ -77,6 +78,7 @@ enum {
IORING_OP_LINK_TIMEOUT,
IORING_OP_CONNECT,
IORING_OP_FALLOCATE,
+ IORING_OP_OPENAT,
/* this goes last, obviously */
IORING_OP_LAST,