arch_exit_to_user_mode(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so bestie, you're looking at arch_exit_to_user_mode(9) from the Kernel API Manual β€” it's the architecture-specific final-work-before-user-mode situation, and it's giving tiny but important ✨

πŸŽ€ NAME

arch_exit_to_user_mode β€” Architecture specific final work before exit to user mode. πŸ’…

✨ SYNOPSIS

void arch_exit_to_user_mode (void );

🌸 ARGUMENTS

  • void β€” no arguments. That's it. Nothing. Nada. 🫢

πŸ’… DESCRIPTION

Invoked from exit_to_user_mode with interrupt disabled as the last function before return. Defaults to NOOP.

This needs to be __always_inline because it is non-instrumentable code invoked after context tracking switched to user mode. Like, it has to be __always_inline, no debate. πŸ”₯

An architecture implementation must not do anything complex, no locking etc. Keep it simple, bestie. The main purpose is for speculation mitigations. πŸ‘‘

πŸ¦‹ SEE ALSO

Kernel file ./include/linux/irq-entry-common.h β€” yes, that's the one:


mwah πŸ’– that's the whole page: source/version ./include/linux, date October 2026, and the title is arch_exit_to_user_mode(9) from the Kernel API Manual. periodt. πŸŽ€

πŸ“¦ where this page comes from