]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
rust: alloc: kvec: implement AsPageIter for VVec
authorDanilo Krummrich <dakr@kernel.org>
Wed, 20 Aug 2025 14:53:43 +0000 (16:53 +0200)
committerDanilo Krummrich <dakr@kernel.org>
Thu, 4 Sep 2025 21:33:50 +0000 (23:33 +0200)
commit779db37373a38f23e2534c7f4ffe8188f5237988
tree11182d3d32f3150b2feea2d578eb4707c8e0cd3e
parent9acb4e630c3f3fc070b9962683fdde5ba1c4c70c
rust: alloc: kvec: implement AsPageIter for VVec

Implement AsPageIter for VVec; this allows to iterate and borrow the
backing pages of a VVec. This, for instance, is useful in combination
with VVec backing a scatterlist.

Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Reviewed-by: Alexandre Courbot <acourbot@nvidia.com>
Tested-by: Alexandre Courbot <acourbot@nvidia.com>
Reviewed-by: Daniel Almeida <daniel.almeida@collabora.com>
Link: https://lore.kernel.org/r/20250820145434.94745-8-dakr@kernel.org
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
rust/kernel/alloc/kvec.rs