History

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.

Jens Axboe committed 6 years ago

Commit 15b71ab1 parent 35cb6d52 files · +95 −2Browse files

Showing the changes to include/uapi/linux (1 of 2 files). Show all

Unified · Split

include/uapi/linux/io_uring.h+2−0
@@ -34,6 +34,7 @@ struct io_uring_sqe { · 33 unmodified lines
3434 __u32 timeout_flags;
3535 __u32 accept_flags;
3636 __u32 cancel_flags;
37+ __u32 open_flags;
3738 };
3839 __u64 user_data; /* data to be passed back at completion time */
3940 union {
@@ -77,6 +78,7 @@ enum { · 37 unmodified lines
7778 IORING_OP_LINK_TIMEOUT,
7879 IORING_OP_CONNECT,
7980 IORING_OP_FALLOCATE,
81+ IORING_OP_OPENAT,
8082
8183 /* this goes last, obviously */
8284 IORING_OP_LAST,