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>
Tue, 29 Oct 2024 19:43:27 +0000 (13:43 -0600)
commit81d8191eb99d95b32e55d09d74f682d40d3e74e9
treebec1d88fda87b11bee440fa30ecdf66c32a4b049
parent09d0a8ea7facc8b1581c9bd85c3ea6f5aa62ab7d
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