io_uring/openclose: add support for IORING_OP_FIXED_FD_INSTALL
[linux-2.6-microblaze.git] / include / uapi / linux / io_uring.h
index f1c16f8..db4b913 100644 (file)
@@ -71,6 +71,7 @@ struct io_uring_sqe {
                __u32           uring_cmd_flags;
                __u32           waitid_flags;
                __u32           futex_flags;
+               __u32           install_fd_flags;
        };
        __u64   user_data;      /* data to be passed back at completion time */
        /* pack this to avoid bogus arm OABI complaints */
@@ -253,6 +254,7 @@ enum io_uring_op {
        IORING_OP_FUTEX_WAIT,
        IORING_OP_FUTEX_WAKE,
        IORING_OP_FUTEX_WAITV,
+       IORING_OP_FIXED_FD_INSTALL,
 
        /* this goes last, obviously */
        IORING_OP_LAST,
@@ -386,6 +388,13 @@ enum {
 /* Pass through the flags from sqe->file_index to cqe->flags */
 #define IORING_MSG_RING_FLAGS_PASS     (1U << 1)
 
+/*
+ * IORING_OP_FIXED_FD_INSTALL flags (sqe->install_fd_flags)
+ *
+ * IORING_FIXED_FD_NO_CLOEXEC  Don't mark the fd as O_CLOEXEC
+ */
+#define IORING_FIXED_FD_NO_CLOEXEC     (1U << 0)
+
 /*
  * IO completion data structure (Completion Queue Entry)
  */