Skip to content
Commit 96c7d4f8 authored by Breno Leitao's avatar Breno Leitao Committed by Jens Axboe
Browse files

io_uring: Create a helper to return the SQE size



Create a simple helper that returns the size of the SQE. The SQE could
have two size, depending of the flags.

If IO_URING_SETUP_SQE128 flag is set, then return a double SQE,
otherwise returns the sizeof of io_uring_sqe (64 bytes).

Signed-off-by: default avatarBreno Leitao <leitao@debian.org>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarPavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/20230504121856.904491-2-leitao@debian.org
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 776617db
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment