IO-Uring Archive on lore.kernel.org
 help / color / Atom feed
* [liburing patch] document IORING_SETUP_CQSIZE
@ 2019-11-07 21:18 Jeff Moyer
  2019-11-07 21:24 ` Jens Axboe
  0 siblings, 1 reply; 2+ messages in thread
From: Jeff Moyer @ 2019-11-07 21:18 UTC (permalink / raw)
  To: axboe, io-uring

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

Signed-off-by: Jeff Moyer <jmoyer@redhat.com>

diff --git a/man/io_uring_setup.2 b/man/io_uring_setup.2
index 9ab0143..c6e3dec 100644
--- a/man/io_uring_setup.2
+++ b/man/io_uring_setup.2
@@ -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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [liburing patch] document IORING_SETUP_CQSIZE
  2019-11-07 21:18 [liburing patch] document IORING_SETUP_CQSIZE Jeff Moyer
@ 2019-11-07 21:24 ` Jens Axboe
  0 siblings, 0 replies; 2+ messages in thread
From: Jens Axboe @ 2019-11-07 21:24 UTC (permalink / raw)
  To: Jeff Moyer, io-uring

On 11/7/19 2:18 PM, Jeff Moyer wrote:
> Add text in the io_uring_setup man page for the IORING_SETUP_CQSIZE
> option.

Applied, thanks Jeff.

-- 
Jens Axboe


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-07 21:18 [liburing patch] document IORING_SETUP_CQSIZE Jeff Moyer
2019-11-07 21:24 ` Jens Axboe

IO-Uring Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/io-uring/0 io-uring/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 io-uring io-uring/ https://lore.kernel.org/io-uring \
		io-uring@vger.kernel.org
	public-inbox-index io-uring

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.io-uring


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git