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>
Wed, 23 Oct 2024 13:35:35 +0000 (07:35 -0600)
commit96b083a22cae9eaac57e152145cfd6614bc37420
treebf7eaf35ecb222e1d3cad0c5fe348f5c62a90a52
parentfff46341282d8905536dc36bde5bd4e8b11780bb
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