Re: [PATCH v5 01/16] rust: pass module name to `Module::init`

Miguel Ojeda
2024-12-11T11:41:39Z

On Wed, Dec 11, 2024 at 12:05 PM Greg KH <gregkh@linuxfoundation.org> wrote:
>
> Or does the Rust side not have KBUILD_MODNAME?

We can definitely give access to it at compile-time with e.g. `env!`:

pr_info!("{}\n", env!("KBUILD_MODNAME"));

Cheers,
Miguel