]> git.ipfire.org Git - thirdparty/linux.git/commit
io_uring/query: introduce rings info query
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 13 Nov 2025 10:48:58 +0000 (10:48 +0000)
committerJens Axboe <axboe@kernel.dk>
Thu, 13 Nov 2025 18:17:36 +0000 (11:17 -0700)
commit4aaa9bc4d5921363490d95fe66c4db086a915799
treed441dc5b4d430263bb9c317a2d89b41e715a9a8d
parent2647e2ecc096d2330d6b6a34a3a1f0a99828c14c
io_uring/query: introduce rings info query

Same problem as with zcrx in the previous patch, the user needs to know
SQ/CQ header sizes to allocated memory before setup to use it for user
provided rings, i.e. IORING_SETUP_NO_MMAP, however that information is
only returned after registration, hence the user is guessing kernel
implementation details.

Return the header size and alignment, which is split with the same
motivation, to allow the user to know the real structure size without
alignment in case there will be more flexible placement schemes in the
future.

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