io_uring: introduce struct io_ctx_config
authorPavel Begunkov <asml.silence@gmail.com>
Wed, 12 Nov 2025 12:45:56 +0000 (12:45 +0000)
committerJens Axboe <axboe@kernel.dk>
Thu, 13 Nov 2025 14:27:34 +0000 (07:27 -0700)
commit0f4b537363cb66c78e97bb58c26986af62856356
tree4a71d99f705e158c91cc4c6b6d42e0cb59202f6b
parent929dbbb699110c9377da721ed7b44a660bb4ee01
io_uring: introduce struct io_ctx_config

There will be more information needed during ctx setup, and instead of
passing a handful of pointers around, wrap them all into a new
structure. Add a helper for encapsulating all configuration checks and
preparation, that's also reused for ring resizing.

Note, it indirectly adds a io_uring_sanitise_params() check to ring
resizing, which is a good thing.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/io_uring.c
io_uring/io_uring.h
io_uring/register.c