On Tue, 1 Oct 2024 16:59:39 +0200 Danilo Krummrich <dakr@xxxxxxxxxx> 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> Reviewed-by: Gary Guo <gary@xxxxxxxxxxx> > --- > rust/kernel/alloc.rs | 8 ++++ > rust/kernel/alloc/allocator.rs | 70 ++++++++++++++++++++++++++++++++++ > 2 files changed, 78 insertions(+)