Home
last modified time | relevance | path

Searched hist:"747 b1f65d39ae729b7914075899b0c82d7f667db" (Results 1 – 1 of 1) sorted by relevance

/linux/include/linux/
H A Duio.hdiff 747b1f65d39ae729b7914075899b0c82d7f667db Tue Mar 28 22:21:06 CEST 2023 Jens Axboe <axboe@kernel.dk> iov_iter: overlay struct iovec and ubuf/len

Add an internal struct iovec that we can return as a pointer, with the
fields of the iovec overlapping with the ITER_UBUF ubuf and length
fields.

Then we can have iter_iov() check for the appropriate type, and return
&iter->__ubuf_iovec for ITER_UBUF and iter->__iov for ITER_IOVEC and
things will magically work out for a single segment request regardless
of either type.

Signed-off-by: Jens Axboe <axboe@kernel.dk>