irqentry_exit_to_user_mode(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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's pt_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 πŸ”₯


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