Re: [PATCH] io_uring: document advise SQE field reuse for 64-bit lengths
From: Jens Axboe
Date: Mon Feb 16 2026 - 10:22:37 EST
On 2/16/26 4:37 AM, redacherkaoui wrote:
> IORING_OP_FADVISE and IORING_OP_MADVISE reuse SQE fields to
> support 64-bit lengths without extending struct io_uring_sqe.
>
> For IORING_OP_FADVISE, the length is carried in sqe->addr when
> non-zero, with sqe->len providing legacy fallback.
>
> For IORING_OP_MADVISE, the length is carried in sqe->off when
> non-zero, with sqe->len providing legacy fallback.
>
> This differs from the more common addr/off/len interpretation
> used by many other opcodes and can be confusing when constructing
> SQEs manually.
>
> Document the field mapping in the UAPI header to clarify the
> intended behavior and reduce the risk of misuse.
What is this patch against? Not the upstream kernel...
--
Jens Axboe