arch_ptrace...syscall_exit(9)
π arch_ptrace...syscall_exit β Kernel API Manual π
okay so bestie, buckle up, because we're diving into arch_ptrace_report_syscall_exit and honestly? it's giving niche-but-iconic. this is the architecture-specific hook for ptrace_report_syscall_exit(), and yes, the page header is literally arch_ptrace...syscall_exit(9) because the kernel devs love an abbreviated moment. β¨
πΈ NAME πΈ
arch_ptrace_report_syscall_exit β the architecture-specific version of ptrace_report_syscall_exit(). lowkey the whole personality of the page. π
π¦ SYNOPSIS π¦
void arch_ptrace_report_syscall_exit (struct pt_regs *regs , int step );
that's it. that's the whole signature. no cap. π«Ά
π ARGUMENTS π
regsβ a pointer to the register state at syscall exit. think of it as the receipts of what the registers were doing when the syscall clocked out. πstepβ tells you whether this is a single-step exit rather than a normal syscall exit. like, is this a solo walk or a regular syscall departure? main character energy either way. β
π DESCRIPTION π
so here's the vibe: this function exists so that architectures can have their very own, custom ptrace_report_syscall_exit implementations. bespoke. tailored. iykyk. π₯
and if your architecture doesn't define one? no stress β it falls back to ptrace_report_syscall_exit. the default is always there to catch you. ππ«Ά
π SEE ALSO π
- the kernel file
./include/linux/entry-common.hβ go read it, it's right there π arch_ptrace_report_syscall_permit_entry(9)syscall_enter_from_user_mode_work(9)enter_from_user_mode_randomize_stack(9)syscall_enter_from_user_mode_randomize_stack(9)β yes bestie, it's listed twice. that's how it is in the original and i refuse to erase her πsyscall_exit_work(9)syscall_exit_to_user_mode_work(9)syscall_exit_to_user_mode(9)
quick reminder: step is doing real work here, distinguishing a single-step exit from a normal syscall exit β don't sleep on it. π§
and that's the whole page, bestie. π this lil gem lives in ./include/linux and is dated October 2026, served up fresh from the Kernel API Manual. periodt. π
β¨π¦
π¦ 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