irqentry_exit_to_user_mode(9)
okay bestie, this is irqentry_exit_to_user_mode(9) straight out of the Kernel API Manual β the interrupt-exit-work page, and honestly it's giving small function, big responsibilities. π
π NAME π
irqentry_exit_to_user_mode β interrupt exit work. That's the whole vibe: it's the exit work on the interrupt side before you head back to user mode. π¦
β¨ SYNOPSIS β¨
void irqentry_exit_to_user_mode (struct pt_regs *regs );
π ARGUMENTS π
regsβ pointer to current'spt_regs. That's the regs you're handing over, bestie. π«Ά
πΈ DESCRIPTION πΈ
Okay so you invoke this with interrupts disabled and with fully valid regs. When it returns, all the work is handled and interrupts are still disabled β yes, still β so the caller can immediately switch to user mode. β¨
It's called from architecture specific interrupt handling code. π§
The call order is #2 and #3 as described in syscall_exit_to_user_mode. Interrupt exit is not invoking #1, which is the syscall specific one time work. No cap. π
π₯ SEE ALSO π₯
- Kernel file
./include/linux/irq-entry-common.h 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)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)irqentry_nmi_exit(9)
Signed off from source ./include/linux, dated October 2026, and this little page is irqentry_exit_to_user_mode(9). Stay interrupt-disabled till it's handled, bestie ππ
π¦ 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