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>
Tue, 29 Oct 2024 19:43:27 +0000 (13:43 -0600)
commit09d0a8ea7facc8b1581c9bd85c3ea6f5aa62ab7d
tree8e63319da812a6ac76ccafa3b6e9a8474978fd19
parent882dec6c39c40c13dd03e418952c4af38d91bb38
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