rust: introduce `InPlaceModule`
authorWedson Almeida Filho <walmeida@microsoft.com>
Tue, 22 Oct 2024 21:31:39 +0000 (23:31 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 5 Nov 2024 04:33:41 +0000 (05:33 +0100)
commit7f15c46a57c31956591f85b713d7e63cccb25556
treebb39a042e3deec7f4d2f3c17f45e52186ced2ccc
parent77e83550465900ab8454eeb9183df5927f30c599
rust: introduce `InPlaceModule`

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.

Signed-off-by: Wedson Almeida Filho <walmeida@microsoft.com>
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Acked-by: Miguel Ojeda <ojeda@kernel.org>
Link: https://lore.kernel.org/r/20241022213221.2383-3-dakr@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
rust/kernel/lib.rs
rust/macros/module.rs