DEFINE_INTER..._HANDLER_NMI(9)
π DEFINE_INTERRUPT_HANDLER_NMI β Kernel API Manual β¨
okay bestie, buckle up, we're talking about DEFINE_INTERRUPT_HANDLER_NMI today, from the Kernel API Manual β yes that one, the powerpc interrupt-handler family, and this one is the NMI one. NMI = non-maskable interrupt, aka the interrupt that does NOT take no for an answer. icon behavior honestly. π
πΈ NAME πΈ
DEFINE_INTERRUPT_HANDLER_NMI β literally "Define NMI interrupt handler function", that's the whole vibe, that's the assignment, we ate. π
π SYNOPSIS π
DEFINE_INTERRUPT_HANDLER_NMI (func );
like, that's it. that's the whole call. she's concise. π¦
β¨ ARGUMENTS β¨
funcβ the function name of the entry point. you're naming your little handler baby here, she needs a name, be normal about it. πΌ
π₯ RETURN π₯
Returns a value back to the asm caller. yes, the assembly caller is the one receiving it β no cap, it goes straight back to asm. π¬
π DESCRIPTION π
so func is called from ASM entry code. like, the assembly shows up first and then hands it off to your function. main character handoff energy fr fr. π
the macro is written so it acts as a function definition β it's giving "I'm a macro but I'm cosplaying a function" and honestly? slayed. π
β οΈ important, bestie: you Append the body with a pair of curly brackets. like the definition isn't done until you give her her braces. don't forget the { }. that's not optional, that's just how she works. π
π¦ SEE ALSO π¦
kernel file: ./arch/powerpc/include/asm/interrupt.h β go read the source, it's right there, iykyk π
DECLARE_INTERRUPT_HANDLER_RAW(9)DEFINE_INTERRUPT_HANDLER_RAW(9)DECLARE_INTERRUPT_HANDLER(9)DEFINE_INTERRUPT_HANDLER(9)DECLARE_INTERRUPT_HANDLER_RET(9)DEFINE_INTERRUPT_HANDLER_RET(9)DECLARE_INTERRUPT_HANDLER_ASYNC(9)DEFINE_INTERRUPT_HANDLER_ASYNC(9)DECLARE_INTERRUPT_HANDLER_NMI(9)
the whole squad is here, it's a family reunion, we love a support system π«Άβ¨
aaaand that's the page! π this little beauty lives in ./arch/powerpc/include/asm and the version stamp is October 2026 β so yeah, she's dated, she's documented, she's iconic. go write your NMI handler, bestie, and remember the curly brackets or it's over for you ππ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms