teardown_percpu_nmi(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ teardown_percpu_nmi(9) ✨

okay so this is a page from the Kernel API Manual, and honestly? it's a short one but it's important, so stay with me bestie πŸ’–


🌸 NAME 🌸

teardown_percpu_nmi β€” literally undoes the NMI setup of an IRQ line πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

void teardown_percpu_nmi (unsigned int irq );

πŸ’… ARGUMENTS πŸ’…

  • irq β€” the interrupt line we're pulling the CPU-local NMI configuration off of 🫢

πŸ”₯ DESCRIPTION πŸ”₯

So this call is the undo button for prepare_percpu_nmi β€” like, whatever that one set up, this one takes it right back down. no cap, that's the whole vibe ✨

⚠️ okay important: the IRQ line should not be enabled for the current CPU when you call this. and because this is a CPU-local operation, you gotta call it from non-preemptible context. like, do not be preempted mid-teardown, that's not the move πŸ’€

πŸ‘‘ SEE ALSO πŸ‘‘

the kernel file ./kernel/irq/manage.c is where it lives, and here's the whole friend group β€” go say hi to all of them 🧚:


and that's the whole page bestie, you ate that πŸ“ the source is ./kernel/irq, dated October 2026 β€” periodt πŸ’œβœ¨

πŸ“¦ where this page comes from