summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2019-10-03 16:39:36 -0600
committerJens Axboe <axboe@kernel.dk>2019-10-03 16:39:36 -0600
commit9ea0e8a82a972e82672f382c25e37d76f989aed8 (patch)
treec398755bb55ef925f084046ae5d911257145c6cc /src
parent6bf626224e9f488e34e2e9ba47cd1890a38cf43a (diff)
downloadliburing-9ea0e8a82a972e82672f382c25e37d76f989aed8.tar.gz
liburing-9ea0e8a82a972e82672f382c25e37d76f989aed8.tar.bz2
Add test/file-register
Tests both existing functionality, but also the new sparse maps, update/remove/add functionality. Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'src')
-rw-r--r--src/include/liburing/io_uring.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/include/liburing/io_uring.h b/src/include/liburing/io_uring.h
index ea57526..4f532d9 100644
--- a/src/include/liburing/io_uring.h
+++ b/src/include/liburing/io_uring.h
@@ -150,5 +150,11 @@ struct io_uring_params {
#define IORING_UNREGISTER_FILES 3
#define IORING_REGISTER_EVENTFD 4
#define IORING_UNREGISTER_EVENTFD 5
+#define IORING_REGISTER_FILES_UPDATE 6
+
+struct io_uring_files_update {
+ __u32 offset;
+ __s32 *fds;
+};
#endif