syscall_exi...mode_prepare(9)
πΈ NAME πΈ
syscall_exit_to_user_mode_prepare β the girlie that calls exit_to_user_mode_loop() if it's, like, actually required π
β¨ SYNOPSIS β¨
void syscall_exit_to_user_mode_prepare (struct pt_regs *regs );
π ARGUMENTS π
regsβ pointer topt_regson the entry stack, bestie. That's the whole vibe. π«Ά
π DESCRIPTION π
Okay so real talk: this function is a wrapper around __exit_to_user_mode_prepare, and its whole job β its entire main character energy β is to separate the exit work for syscalls and interrupts. That's it. That's the lore. π₯
Like, syscalls and interrupts both gotta exit to user mode eventually, but they do NOT share the same exit-work pipeline, and this lil function is the one keeping those two worlds apart so nothing gets messy. No cap. β¨
π¦ SEE ALSO π¦
Kernel file ./include/linux/irq-entry-common.h β go read it, iykyk π
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)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)irqentry_nmi_exit(9)
Kay so that's literally the whole page, bestie β go touch some pt_regs and slay ππ
Kernel API Manual π§ β straight outta ./include/linux, dated October 2026. That's the sign-off, mwah ππΈ
π¦ 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