ptrace_event_pid(9)
π¦ ptrace_event_pid(9) β Kernel API Manual π¦
π NAME π
ptrace_event_pid β the βpossibly stop for a ptrace event notificationβ girlie. Like, it might stop for a ptrace event notification, bestie, thatβs the whole vibe.
π SYNOPSIS π
okay so the signature is literally this, no cap:
void ptrace_event_pid (int event , struct pid *pid );
β¨ ARGUMENTS β¨
eventβ aPTRACE_EVENT_*value to report. Yes, thePTRACE_EVENT_*family, periodt.pidβ process identifier forPTRACE_GETEVENTMSGto return. Thatβs the one.
πΈ DESCRIPTION πΈ
So what it does: it checks whether event is enabled, and if it is, it reports event and pid to the ptrace parent. The pid gets reported as the pid_t seen from the ptrace parentβs pid namespace β namespace-flavored, iykyk. π
Also, and this is important: called without locks. Thatβs the note. No locks, bestie. π«Ά
π SEE ALSO π
Kernel file: ./include/linux/ptrace.h β plus this whole friend group of manual pages:
ptrace_may_access(9)ptrace_parent(9)ptrace_event_enabled(9)ptrace_event(9)ptrace_init_task(9)ptrace_release_task(9)arch_has_single_step(9)user_enable_single_step(9)user_disable_single_step(9)arch_has_block_step(9)user_enable_block_step(9)arch_ptrace_stop_needed(9)arch_ptrace_stop(9)ptrace_report_syscall_permit_entry(9)ptrace_report_syscall_exit(9)
Source/version: ./include/linux Β· date: October 2026. Thatβs the footer, bestie β 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