Re: [PATCH v2 4/5] rust: introduce `InPlaceModule`
From: Alice Ryhl
Date: Thu Apr 04 2024 - 08:48:56 EST
On Thu, Mar 28, 2024 at 8:55 PM Wedson Almeida Filho <wedsonaf@xxxxxxxxx> wrote:
>
> From: Wedson Almeida Filho <walmeida@xxxxxxxxxxxxx>
>
> This allows modules to be initialised in-place in pinned memory, which
> enables the usage of pinned types (e.g., mutexes, spinlocks, driver
> registrations, etc.) in modules without any extra allocations.
>
> Drivers that don't need this may continue to implement `Module` without
> any changes.
>
> Reviewed-by: Benno Lossin <benno.lossin@xxxxxxxxx>
> Tested-by: Valentin Obst <kernel@xxxxxxxxxxxxxxx>
> Signed-off-by: Wedson Almeida Filho <walmeida@xxxxxxxxxxxxx>
Reviewed-by: Alice Ryhl <aliceryhl@xxxxxxxxxx>