On 1/4/2021 5:53 PM, Pavel Begunkov wrote:
On 18/12/2020 18:07, Bijan Mottahedeh wrote:
This is a prep rename patch for subsequent patches to generalize file
registration.
[...]
diff --git a/include/uapi/linux/io_uring.h b/include/uapi/linux/io_uring.h
index d31a2a1..d421f70 100644
--- a/include/uapi/linux/io_uring.h
+++ b/include/uapi/linux/io_uring.h
@@ -285,7 +285,7 @@ enum {
IORING_REGISTER_LAST
};
-struct io_uring_files_update {
+struct io_uring_rsrc_update {
It's a user API, i.e. the header used by userspace programs, so can't
be changed or would break them.
__u32 offset;
__u32 resv;
__aligned_u64 /* __s32 * */ fds;
I defined files to be same as rsrc in io_uring.h:
#define io_uring_files_update io_uring_rsrc_update
As for liburing, I have modified it to use io_uring_rsrc_update.
Does that look reasonable?