disable_nmi_nosync(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– disable_nmi_nosync(9) πŸ’–

okay bestie, so we're in the Kernel API Manual today and this one is a tiny little function with a whole lot of attitude. it's giving "short but important." let's get into it ✨


🌸 NAME 🌸

disable_nmi_nosync β€” disable an nmi without waiting 🫢

like, you turn off the interrupt and you do NOT stick around to see if anybody's still in there. no cap.


πŸŽ€ SYNOPSIS πŸŽ€

void disable_nmi_nosync (unsigned int irq );

that's it. that's the whole signature. iconic behavior honestly πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • irq β€” Interrupt to disable. that's the one you're switching off, bestie. one (1) interrupt, selected by you 🎯

πŸ’œ DESCRIPTION πŸ’œ

Disable the selected interrupt line. and listen β€” disables and enables are nested, okay? so don't be out here thinking you can just disable once and then enable twice and call it a day. that's not how this works. the nesting is real and it is load-bearing πŸ™ˆ

The interrupt to disable must have been requested through request_nmi. like, that's the paperwork. if you didn't go through request_nmi, this isn't your interrupt to disable, friend πŸ’€

and here's the main character detail: unlike disable_nmi, this function does not ensure existing instances of the IRQ handler have completed before returning. so it comes back right away, all casual, while the handler might still be out there doing its thing. if you need that guarantee, you want disable_nmi, not this one. lowkey a big deal πŸ”₯

fr fr, read that last paragraph twice. "nosync" is literally in the name β€” it does not wait for you. act accordingly πŸ‘‘

🌈 SEE ALSO 🌈

Kernel file ./kernel/irq/manage.c β€” that's where the magic lives, go read it 🧚

and the whole extended friend group, in this exact order, mwah:


and that's the page, bestie πŸ“ this little drop came out of ./kernel/irq and it's dated October 2026 β€” go off, you beautiful interrupt-disabling icon πŸ‘‘πŸ’– see u in the next one πŸ’…

πŸ“¦ where this page comes from