Skip to contentSkip to conversation

register: Remove deprecated io_uring_cqwait_reg_arg

PATCH Superseded Haiyue Wang 1 participant 1 message May 16, 2025 io_uring

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 register: Remove deprecated io_uring_cqwait_reg_arg

The opcode IORING_REGISTER_MEM_REGION and its argument io_uring_cqwait_reg_arg have been removed by [1] and [2].

And a more generic opcode IORING_REGISTER_MEM_REGION has been introduced by [3] since Linux 6.13.

[1]: https://git.kernel.org/torvalds/c/83e041522eb9
[2]: https://git.kernel.org/torvalds/c/c750629caeca
[3]: https://git.kernel.org/torvalds/c/93238e661855

---
 man/io_uring_enter.2            |  4 +-
 man/io_uring_register.2         | 94 ---------------------------------
 src/include/liburing/io_uring.h | 14 -----
 3 files changed, 2 insertions(+), 110 deletions(-)
man/io_uring_enter.2 +2 -2
index bbae6fb..99c0ab2 100644
@@ -133,8 +133,8 @@ is not a pointer to a
 but merely an offset into an area of wait regions previously registered with
 .BR io_uring_register (2)
 using the
-.B IORING_REGISTER_CQWAIT_REG
-operation. Available since 6.12
+.B IORING_REGISTER_MEM_REGION
+operation. Available since 6.13
 
 .PP
 .PP
man/io_uring_register.2 +0 -94

100 lines not on this page · raw message

src/include/liburing/io_uring.h +0 -14
index a89d0d1..73d2997 100644
@@ -851,20 +851,6 @@ enum {
 	IORING_REG_WAIT_TS		= (1U << 0),
 };
 
-/*
- * Argument for IORING_REGISTER_CQWAIT_REG, registering a region of
- * struct io_uring_reg_wait that can be indexed when io_uring_enter(2) is
- * called rather than pass in a wait argument structure separately.
- */
-struct io_uring_cqwait_reg_arg {
-	__u32		flags;
-	__u32		struct_size;
-	__u32		nr_entries;
-	__u32		pad;
-	__u64		user_addr;
-	__u64		pad2[3];
-};
-
 /*
  * Argument for io_uring_enter(2) with
  * IORING_GETEVENTS | IORING_ENTER_EXT_ARG_REG set, where the actual argument
Signature · 1 line
2.49.0