]> www.infradead.org Git - users/jedix/linux-maple.git/commit
io_uring/cmd: introduce io_uring_cmd_import_fixed_vec
authorPavel Begunkov <asml.silence@gmail.com>
Fri, 21 Mar 2025 18:04:34 +0000 (18:04 +0000)
committerJens Axboe <axboe@kernel.dk>
Fri, 21 Mar 2025 18:52:15 +0000 (12:52 -0600)
commitef490275297267d9461733ecd9b02bd3b798b3a4
tree54e3a1198604643f01f7300bccfa0134cd588cae
parent3a4689ac109f18f23ea0d0c1c79e055142796858
io_uring/cmd: introduce io_uring_cmd_import_fixed_vec

io_uring_cmd_import_fixed_vec() is a cmd helper around vectored
registered buffer import functions, which caches the memory under
the hood. The lifetime of the vectore and hence the iterator is bound to
the request. Furthermore, the user is not allowed to call it multiple
times for a single request.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/97487a80dec3fb8cf8aeedf1f9026ef6d503fe4b.1742579999.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/linux/io_uring/cmd.h
io_uring/uring_cmd.c
io_uring/uring_cmd.h