summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2022-05-17 06:03:46 -0600
committerJens Axboe <axboe@kernel.dk>2022-05-17 06:03:46 -0600
commit1e8625ad0bc3f6b07eb935bbc6a8203693a7792b (patch)
tree3bdc0a74a13cbf0cd0155cbc1a128c858e564539
parent5d84cc6037e3e7abfd0c90be585a05e0e83c36af (diff)
downloadliburing-1e8625ad0bc3f6b07eb935bbc6a8203693a7792b.tar.gz
liburing-1e8625ad0bc3f6b07eb935bbc6a8203693a7792b.tar.bz2
io_uring.h: fix merge error
The registered buffer rings haven't been added yet, but a hunk snuck into the release anyway. Fix it up. Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r--src/include/liburing/io_uring.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/include/liburing/io_uring.h b/src/include/liburing/io_uring.h
index 4d736d2..60f12ee 100644
--- a/src/include/liburing/io_uring.h
+++ b/src/include/liburing/io_uring.h
@@ -417,12 +417,16 @@ struct io_uring_files_update {
__aligned_u64 /* __s32 * */ fds;
};
+/*
+ * Register a fully sparse file space, rather than pass in an array of all
+ * -1 file descriptors.
+ */
#define IORING_RSRC_REGISTER_SPARSE (1U << 0)
struct io_uring_rsrc_register {
__u32 nr;
__u32 flags;
- __u32 resv2;
+ __u64 resv2;
__aligned_u64 data;
__aligned_u64 tags;
};