ptrace_event_enabled(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ptrace_event_enabled β€” test whether a ptrace event is enabled πŸŽ€

okay so real talk, this is from the Kernel API Manual (section 9, kernel devs only, no normies allowed), and it's honestly such a little cutie. one function, one question, one bool. she ate and left zero crumbs ✨


🌸 NAME 🌸

ptrace_event_enabled β€” literally just testing whether a ptrace event is enabled, that's it, that's the whole gig 🫢


✨ SYNOPSIS ✨

bool ptrace_event_enabled (struct task_struct *task , int event );

like, give her a task and an event and she hands you back a bool. no drama, no side quests πŸ’–


πŸŽ€ ARGUMENTS πŸŽ€

  • task β€” the ptracee of interest πŸ‘€ like the task you're being nosy about. she's the main character here.
  • event β€” the PTRACE_EVENT_* you wanna test 🌈 so pick your event, bestie.

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so the whole vibe: you test whether event is enabled for the ptracee task. that's the mission. that's the lore.

she returns true if event is enabled πŸ’š and false otherwise πŸ’€ no cap, it's that simple. no hidden gotchas, no surprises, she's not gonna play games with you.

ngl it's giving "small function, big responsibility" and i'm obsessed with her for it πŸ‘‘

πŸ”₯ SEE ALSO πŸ”₯

she does NOT exist in a vacuum, bestie, she runs with a whole friend group in the kernel file ./include/linux/ptrace.h β€” go say hi to all of them:

like that's a whole group chat of ptrace girlies fr fr πŸ’…


okay that's the whole page, mwah πŸ’‹ this one came from ./include/linux, dated October 2026, and she's filed under ptrace_event_enabled(9) β€” go forth and check your ptrace events, bestie, i believe in you πŸ§šπŸ’œ

πŸ“¦ where this page comes from