summaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/io_uring.h
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2020-09-28 14:27:37 -0600
committerJens Axboe <axboe@kernel.dk>2020-12-09 12:03:59 -0700
commit14a1143b68ee2e4ec4e8d54f71cddb9724f9ec70 (patch)
tree8ad4cf2eca7a3bc169b73ced71a56825067c6ee2 /include/uapi/linux/io_uring.h
parent80a261fd00327898e272ddc84ccc9510c036453c (diff)
downloadlinux-14a1143b68ee2e4ec4e8d54f71cddb9724f9ec70.tar.gz
linux-14a1143b68ee2e4ec4e8d54f71cddb9724f9ec70.tar.bz2
linux-14a1143b68ee2e4ec4e8d54f71cddb9724f9ec70.zip
io_uring: add support for IORING_OP_UNLINKAT
IORING_OP_UNLINKAT behaves like unlinkat(2) and takes the same flags and arguments. Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/uapi/linux/io_uring.h')
-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 c9a58bc7e4be..557e7eae497f 100644
--- a/include/uapi/linux/io_uring.h
+++ b/include/uapi/linux/io_uring.h
@@ -43,6 +43,7 @@ struct io_uring_sqe {
__u32 fadvise_advice;
__u32 splice_flags;
__u32 rename_flags;
+ __u32 unlink_flags;
};
__u64 user_data; /* data to be passed back at completion time */
union {
@@ -135,6 +136,7 @@ enum {
IORING_OP_TEE,
IORING_OP_SHUTDOWN,
IORING_OP_RENAMEAT,
+ IORING_OP_UNLINKAT,
/* this goes last, obviously */
IORING_OP_LAST,