]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
rust: alloc: kbox: implement AsPageIter for VBox
authorDanilo Krummrich <dakr@kernel.org>
Wed, 20 Aug 2025 14:53:41 +0000 (16:53 +0200)
committerDanilo Krummrich <dakr@kernel.org>
Thu, 4 Sep 2025 21:33:50 +0000 (23:33 +0200)
commit671618432f46c553d9b82ad701ac054e16c8d55a
treec23ee93929e78d65158824f362d9c91ab67f3abd
parent866ec3bab19c33a66ad384bc69dff1cd83d7ed12
rust: alloc: kbox: implement AsPageIter for VBox

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

Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Reviewed-by: Alexandre Courbot <acourbot@nvidia.com>
Tested-by: Alexandre Courbot <acourbot@nvidia.com>
Link: https://lore.kernel.org/r/20250820145434.94745-6-dakr@kernel.org
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
rust/kernel/alloc/kbox.rs