summaryrefslogtreecommitdiff
path: root/rust/kernel/alloc/allocator/iter.rs
diff options
context:
space:
mode:
authorDanilo Krummrich <dakr@kernel.org>2025-08-20 16:53:37 +0200
committerDanilo Krummrich <dakr@kernel.org>2025-09-04 18:21:09 +0200
commit467971a908761540cc60b4da22639c440dc05462 (patch)
tree6e7cf8c9ef90908fae8d867a1c0816839e2ffa3c /rust/kernel/alloc/allocator/iter.rs
parent93296e9d9528f0d87f2cf3fee494599060a0f14a (diff)
rust: page: implement BorrowedPage
Currently, a Page always owns the underlying struct page. However, sometimes a struct page may be owned by some other entity, e.g. a vmalloc allocation. Hence, introduce BorrowedPage to support such cases, until the Ownable solution [1] lands. This is required by the scatterlist abstractions. Acked-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/rust-for-linux/ZnCzLIly3DRK2eab@boqun-archlinux/ [1] Link: https://lore.kernel.org/r/20250820145434.94745-2-dakr@kernel.org Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Diffstat (limited to 'rust/kernel/alloc/allocator/iter.rs')
0 files changed, 0 insertions, 0 deletions