Skip to contentSkip to conversation

document IORING_SETUP_CQSIZE

PATCH Applied Jeff Moyer 2 participants 2 messages Nov 7, 2019 io_uring

lore
Share & tools
lore

Jeff Moyer

author
#0 lore raw

PATCH 1/1 document IORING_SETUP_CQSIZE

Add text in the io_uring_setup man page for the IORING_SETUP_CQSIZE option.

man/io_uring_setup.2 +13 -2
index 9ab0143..c6e3dec 100644
@@ -131,6 +131,13 @@ field of the
 This flag is only meaningful when
 .B IORING_SETUP_SQPOLL
 is specified.
+.TP
+.B IORING_SETUP_CQSIZE
+Create the completion queue with
+.IR "struct io_uring_params.cq_entries"
+entries.  The value must be greater than
+.IR entries ,
+and may be rounded up to the next power-of-two.
 .PP
 If no flags are specified, the io_uring instance is setup for
 interrupt driven I/O.  I/O may be submitted using
@@ -300,11 +307,15 @@ params is outside your accessible address space.
 The resv array contains non-zero data, p.flags contains an unsupported
 flag,
 .I entries
-is out of bounds, or
+is out of bounds,
 .B IORING_SETUP_SQ_AFF
 was specified, but
 .B IORING_SETUP_SQPOLL
-was not.
+was not, or
+.B IORING_SETUP_CQSIZE
+was specified, but
+.I io_uring_params.cq_entries
+was invalid.
 .TP
 .B EMFILE
 The per-process limit on the number of open file descriptors has been
maintainer Applied
#1 lore raw
Quoted 2 lines · Jeff Moyer

Add text in the io_uring_setup man page for the IORING_SETUP_CQSIZE option.

Applied, thanks Jeff.

Signature · 1 line
Jens Axboe