Re: [PATCH v7 06/26] rust: alloc: implement `Vmalloc` allocator

Benno Lossin
2024-09-26T13:06:45Z

On 12.09.24 00:52, Danilo Krummrich wrote:
> Implement `Allocator` for `Vmalloc`, the kernel's virtually contiguous
> allocator, typically used for larger objects, (much) larger than page
> size.
>
> All memory allocations made with `Vmalloc` end up in `vrealloc()`.
>
> Reviewed-by: Alice Ryhl <aliceryhl@google.com>
> Signed-off-by: Danilo Krummrich <dakr@kernel.org>
> ---
> rust/helpers/helpers.c | 1 +
> rust/helpers/vmalloc.c | 9 ++++++++
> rust/kernel/alloc/allocator.rs | 36 +++++++++++++++++++++++++++++
> rust/kernel/alloc/allocator_test.rs | 1 +
> 4 files changed, 47 insertions(+)
> create mode 100644 rust/helpers/vmalloc.c

Reviewed-by: Benno Lossin <benno.lossin@proton.me>

---
Cheers,
Benno