io_uring: abstract out a bit of the ring filling logic
authorJens Axboe <axboe@kernel.dk>
Mon, 21 Oct 2024 19:32:19 +0000 (13:32 -0600)
committerJens Axboe <axboe@kernel.dk>
Fri, 25 Oct 2024 14:05:55 +0000 (08:05 -0600)
commited6fb07254d12249753aaab88c5686104c919a40
treef594410ed74088f84fb5e2b25ebaa102dee885df
parent251bbeae7107eb1055cd9f831d34f4c1c1bcc0d4
io_uring: abstract out a bit of the ring filling logic

Abstract out a io_uring_fill_params() helper, which fills out the
necessary bits of struct io_uring_params. Add it to io_uring.h as well,
in preparation for having another internal user of it.

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