Re: [PATCH v3 3/5] genirq: Export NMI APIs
From: Thomas Gleixner
Date: Fri Sep 04 2026 - 05:31:23 EST
On Wed, Sep 02 2026 at 18:54, Mayank Rungta wrote:
> Currently, request_nmi(), free_nmi(), enable_nmi(), disable_nmi_nosync(),
> and disable_nmi() are restricted to built-in kernel code because they are
> not exported.
>
> Export these symbols with EXPORT_SYMBOL_GPL so loadable kernel modules can
> register and manage NMIs.
I'm not really fond of that.
Funny enough there is already a driver which claims it can be built as
module which uses these interfaces. Oh well...
> Assisted-by: Antigravity:gemini
I'm impressed that AI is required to add four EXPORT_SYMBOL_GPL()
instances.
Thanks,
tglx