Skip to contentSkip to conversation

man: fix IORING_REGISTER_RING_FDS documentation

PATCH Superseded Jeff Moyer 1 participant 2 messages Apr 3, 2024 io_uring

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Jeff Moyer

author
#0 lore raw

PATCH 1/1 man: fix IORING_REGISTER_RING_FDS documentation

The documentation for the 'arg' parameter is incorrect. Fix it.

man/io_uring_register.2 +2 -2
index fbfae2a..09823bd 100644
@@ -528,8 +528,8 @@ of the ring file descriptor itself. This reduces the overhead of the
 system call.
 
 .I arg
-must be set to an unsigned int pointer to an array of type
-.I struct io_uring_rsrc_register
+must be set to a pointer to an array of type
+.I struct io_uring_rsrc_update
 of
 .I nr_args
 number of entries. The
author
#1 lore raw

It turns out unregister has the same bug. I'll send a v2.

-Jeff

Quoted 19 lines · Jeff Moyer

The documentation for the 'arg' parameter is incorrect. Fix it.

man/io_uring_register.2 +2 -2
index fbfae2a..09823bd 100644
@@ -528,8 +528,8 @@ of the ring file descriptor itself. This reduces the overhead of the
 system call.
 
 .I arg
-must be set to an unsigned int pointer to an array of type
-.I struct io_uring_rsrc_register
+must be set to a pointer to an array of type
+.I struct io_uring_rsrc_update
 of
 .I nr_args
 number of entries. The