arch_do_signal_or_restart(9)
β¨ arch_do_signal_or_restart π
okay bestie, so this is a page from the Kernel API Manual (yes, the kernel has a manual, and yes it's kind of iconic) β and today's main character is arch_do_signal_or_restart. it's the architecture-specific signal delivery function, and honestly? it ate. let's get into it π
πΈ NAME πΈ
arch_do_signal_or_restart β the architecture specific signal delivery function. that's it, that's the vibe. no cap, its whole personality is "i deliver signals, but like, per-architecture" π¦
β¨ SYNOPSIS β¨
void arch_do_signal_or_restart (struct pt_regs *regs );
she takes exactly one argument and returns literally nothing (void, we love a function that doesn't overpromise π). keep reading for the deets on that arg π
π«Ά ARGUMENTS π«Ά
regsβ a pointer to the current'spt_regs. like,currentthe task, itspt_regs, pointed at. that's the whole deal π§
π DESCRIPTION π
so when does this baddie get called? it's invoked from exit_to_user_mode_loop. periodt. that's the entire description β she does not elaborate, she does not explain herself, she simply gets invoked from exit_to_user_mode_loop and leaves π₯
lowkey yes the description is short, but that's literally all the original gives us β no invented lore, no extra tips, we respect the source material π
π SEE ALSO π
bestie, the cross-reference list is LONG and it's giving "everyone wants to be in the group chat". first up, the kernel file where the magic lives:
- Kernel file
./include/linux/irq-entry-common.h
and now, the whole friend group, in this exact order, no skipping π:
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)__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_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 the whole entry/exit-to-user-mode cinematic universe and arch_do_signal_or_restart is literally in it. iykyk β
and that's the page, bestie β go forth and deliver those signals πβ¨ππ¦πΈπ π«Ά
sign-off szn: this lil masterpiece lives under the./include/linuxdirectory, the manual is dated October 2026, and the page name isarch_do_signal_or_restart(9)β all together now, slay πππ
π¦ 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