io_uring: move max entry definition and ring sizing into header
authorJens Axboe <axboe@kernel.dk>
Mon, 21 Oct 2024 19:29:39 +0000 (13:29 -0600)
committerJens Axboe <axboe@kernel.dk>
Fri, 25 Oct 2024 14:05:49 +0000 (08:05 -0600)
commit251bbeae7107eb1055cd9f831d34f4c1c1bcc0d4
tree8c6f15bdbaee08bdeab77092ce6a6ab553cb4e8f
parent81653ff1bab433367ebbedeb28bc19e7de37df84
io_uring: move max entry definition and ring sizing into header

In preparation for needing this somewhere else, move the definitions
for the maximum CQ and SQ ring size into io_uring.h. Make the
rings_size() helper available as well, and have it take just the setup
flags argument rather than the fill ring pointer. That's all that is
needed.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/io_uring.c
io_uring/io_uring.h