Re: [PATCH v8 04/29] rust: alloc: implement `ReallocFunc`

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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(+)




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux