io_uring: introduce io_prep_reg_iovec()
authorPavel Begunkov <asml.silence@gmail.com>
Sat, 8 Mar 2025 18:21:15 +0000 (18:21 +0000)
committerJens Axboe <axboe@kernel.dk>
Mon, 10 Mar 2025 13:14:27 +0000 (07:14 -0600)
commitd291fb65202051e996cd983b29dce3e390421bc6
treeb123bfa5630d496b8699cd4e499d7f2f8d67b9fb
parent5027d02452c982bdc7b36205c66466ebd7e6ee17
io_uring: introduce io_prep_reg_iovec()

iovecs that are turned into registered buffers are imported in a special
way with an offset, so that later we can do an in place translation. Add
a helper function taking care of it.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/7de2ecb9ed5efc3c5cf320232236966da5ad4ccc.1741457480.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/net.c
io_uring/rsrc.c
io_uring/rsrc.h
io_uring/rw.c