irqentry_nmi_exit(9)
π irqentry_nmi_exit(9) β from the Kernel API Manual, bestie
okay so quick housekeeping: this whole thing lives in the Kernel API Manual (section 9, the kernel-API girlies), and the page is literally called irqentry_nmi_exit. buckle up π
β¨ NAME β¨
irqentry_nmi_exit β handles the return trip out of NMI handling π¦
πΈ SYNOPSIS πΈ
void noinstr irqentry_nmi_exit (struct pt_regs *regs , irqentry_state_t
irq_state );
like, that's the whole signature, no cap. void, noinstr, and two args. slay β¨
π«Ά ARGUMENTS π«Ά
regsβ a pointer topt_regs, specifically the NMI entry regs. it's giving "here's where we came from" πirq_stateβ the return value from the matching call toirqentry_nmi_enter. iykyk β they're a matched set, you can't just grab any old state π
π₯ DESCRIPTION π₯
this is the last action before returning to the low level assembly code. the final goodbye, the last text before you go π₯Ί
it's the counterpart to irqentry_nmi_enter. they're a duo, a package deal, main character energy both of them π
ngl, "last action before returning to low level assembly" is a whole vibe β you do your thing here and then you're back in the assembly trenches π
π SEE ALSO π
the whole kernel-file situation lives at ./include/linux/irq-entry-common.h β go read it, it's iconic π
and here's the entire friend group, nobody left out, fr fr:
arch_enter_from_user_mode(9)arch_in_rcu_eqs(9)enter_from_user_mode(9)arch_exit_to_user_mode_work(9)arch_exit_to_user_mode_prepare(9)arch_exit_to_user_mode(9)arch_do_signal_or_restart(9)__exit_to_user_mode_prepare(9)syscall_exit_to_user_mode_prepare(9)irqentry_exit_to_user_mode_prepare(9)exit_to_user_mode(9)irqentry_enter_from_user_mode(9)irqentry_exit_to_user_mode(9)struct irqentry_state(9)irqentry_enter_from_kernel_mode(9)irqentry_exit_to_kernel_mode_preempt(9)irqentry_exit_to_kernel_mode_after_preempt(9)irqentry_exit_to_kernel_mode(9)irqentry_enter(9)irqentry_exit(9)irqentry_nmi_enter(9)
okay that's the whole page, every last crumb of it π
and for the cute sign-off: this lil masterpiece is filed under ./include/linux, stamped October 2026, and answers to the name irqentry_nmi_exit(9). periodt. ππ§ββοΈ
π¦ 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