irqentry_exi...mode_prepare(9)
π irqentry_exi...mode_prepare(9) β Kernel API Manual π
okay so before we even start: yes bestie, the title up there really does say irqentry_exi...mode_prepare(9) with the little dots in the middle π that's not me being lazy, that's genuinely how it's printed in the Kernel API Manual. we respect the truncation. moving on β¨
πΈ NAME πΈ
irqentry_exit_to_user_mode_prepare β the function that calls exit_to_user_mode_loop() if it's required. that's the whole vibe. it prepares, it checks, it maybe-loops, it's very "i'll do it if i have to" energy π
π¦ SYNOPSIS π¦
void irqentry_exit_to_user_mode_prepare (struct pt_regs *regs );
like, that's it. that's the signature. return type void, takes one thing, no drama, no cap π«Ά
β¨ ARGUMENTS β¨
regsβ a pointer to thept_regssitting on the entry stack. that's the whole description, she's brief and she knows it π
π DESCRIPTION π
so here's the tea: irqentry_exit_to_user_mode_prepare is a wrapper around __exit_to_user_mode_prepare π and the reason it exists (the why, the iconique part) is to keep the exit work for syscalls and interrupts separated from each other. two different paths, two different jobs, one tidy little wrapper doing the splitting. it's giving organized. it's giving "i have a folder for everything". periodt π
π₯ SEE ALSO π₯
first up, the kernel file she lives near:
./include/linux/irq-entry-common.h
and then the whole group chat of related functions, in the order they're listed, because we do not reorder our friends π
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)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)
like, that's twenty-two references and every single one of them made the list. no one left behind, not on my watch π§
ngl bestie, this one's a short page. the wrapper is small, the job is specific, and everything above is literally everything the manual says. short king behavior π (and yes,regsis still just a pointer topt_regson the entry stack β i didn't forget π)
okay and finally, the lil sign-off π this page comes from ./include/linux and it's dated October 2026 β so like, from the future?? slay. stay tuned for the next kernel drop, 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