ptrace_event_pid(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ 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 β€” a PTRACE_EVENT_* value to report. Yes, the PTRACE_EVENT_* family, periodt.
  • pid β€” process identifier for PTRACE_GETEVENTMSG to 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:


Source/version: ./include/linux Β· date: October 2026. That’s the footer, bestie β€” mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from