Re: [PATCH v8 04/29] rust: alloc: implement `ReallocFunc`
From: Benno Lossin
Date: Tue Oct 01 2024 - 12:21:10 EST
On 01.10.24 16:59, Danilo Krummrich wrote:
> `ReallocFunc` is an abstraction for the kernel's realloc derivates, such
> as `krealloc`, `vrealloc` and `kvrealloc`.
>
> All of the named functions share the same function signature and
> implement the same semantics. The `ReallocFunc` abstractions provides a
> generalized wrapper around those, to trivialize the implementation of
> `Kmalloc`, `Vmalloc` and `KVmalloc` in subsequent patches.
>
> Signed-off-by: Danilo Krummrich <dakr@xxxxxxxxxx>
> ---
> rust/kernel/alloc.rs | 8 ++++
> rust/kernel/alloc/allocator.rs | 70 ++++++++++++++++++++++++++++++++++
> 2 files changed, 78 insertions(+)
Reviewed-by: Benno Lossin <benno.lossin@xxxxxxxxx>
---
Cheers,
Benno