irqentry_en...om_user_mode(9)
π irqentry_en...om_user_mode(9) β Kernel API Manual π
okay so bestie, welcome to the Kernel API Manual entry for irqentry_enter_from_user_mode β¨ (yes the header is doing that truncated thing, that's just how it's filed, iykyk π
). This one is short but she is important β it's the lil pre-game ritual before the irq handler gets to do anything. Let's get into it π¦
β¨ NAME β¨
irqentry_enter_from_user_mode β literally just establishing state before invoking the irq handler π«Ά
π« SYNOPSIS π«
void irqentry_enter_from_user_mode (struct pt_regs *regs );
πΈ ARGUMENTS πΈ
regsβ pointer to the current'spt_regsπ (yes, "current's" β that's the possessive, no cap, that's what it says)
π₯ DESCRIPTION π₯
so this one gets invoked from architecure-specific entry code with interrupts disabled, periodt. and here's the vibe check: it can only be called when the interrupt entry came from user mode. no exceptions, bestie π
also the calling code must be non-instrumentable β like, do not instrument her, she's working π
but here's the slay: when the function returns, all state is correct and the subsequent functions can be instrumented. the glow-up is real π
the function establishes state (lockdep, RCU (context tracking), tracing) β that's the whole bag, she handles it π
π SEE ALSO π
the whole friend group, fr fr π:
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_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)irqentry_nmi_exit(9)
she lives in ./include/linux, and this edition dropped October 2026 π β that's the footer, and honestly? iconic. go read the source, bestie, it ate ππ
okay that's the whole page, ily, go forth and enter from user mode responsibly π§ββοΈβ¨
π¦ 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