From 60759ece628ea305d8717c81f8d1aeadb70b83c8 Mon Sep 17 00:00:00 2001 From: Wojciech Lukowicz Date: Sat, 28 Oct 2023 17:19:15 +0100 Subject: [PATCH] man/io_uring_setup.2: tidy up IORING_SETUP_NO_MMAP docs This section was referencing invalid member names and those members weren't present in the included struct definitions. Signed-off-by: Wojciech Lukowicz --- man/io_uring_setup.2 | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/man/io_uring_setup.2 b/man/io_uring_setup.2 index 9710aa511..d6e0cb4c3 100644 --- a/man/io_uring_setup.2 +++ b/man/io_uring_setup.2 @@ -305,9 +305,9 @@ Available since 6.1. By default, io_uring allocates kernel memory that callers must subsequently .BR mmap (2). If this flag is set, io_uring instead uses caller-allocated buffers; -.I p->cq_off.user_data +.I p->cq_off.user_addr must point to the memory for the sq/cq rings, and -.I p->sq_off.user_data +.I p->sq_off.user_addr must point to the memory for the sqes. Each allocation must be contiguous memory. Typically, callers should allocate this memory by using @@ -316,6 +316,7 @@ to allocate a huge page. If this flag is set, a subsequent attempt to .BR mmap (2) the io_uring file descriptor will fail. +Available since 6.5. .TP .B IORING_SETUP_REGISTERED_FD_ONLY If this flag is set, io_uring will register the ring file descriptor, and @@ -521,7 +522,8 @@ struct io_sqring_offsets { __u32 flags; __u32 dropped; __u32 array; - __u32 resv[3]; + __u32 resv1; + __u64 user_addr; }; .EE .in @@ -617,7 +619,8 @@ struct io_cqring_offsets { __u32 overflow; __u32 cqes; __u32 flags; - __u32 resv[3]; + __u32 resv1; + __u64 user_addr; }; .EE .in