Re: [PATCH v10 0/2] module: Extend module_blacklist parameter to built-in modules
From: Alice Ryhl
Date: Wed Sep 09 2026 - 09:37:39 EST
On Sun, Sep 06, 2026 at 10:08:57AM -0400, Aaron Tomlin wrote:
> 2. Mangled Names in Rust
>
> For drivers written in Rust, initcall symbols are compiler-mangled,
> which makes initcall_blacklist= virtually impossible for a user to
> specify at a boot prompt.
Are you sure?
As far as I can tell, the Rust module! macro applies #[no_mangle] to the
initcall, so no mangling should apply to it. Its name is the name of the
module followed by an underscore.
Alice