task_is_descendant(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

task_is_descendant(9) β€” from the Kernel API Manual, bestie ✨

Okay so this page is literally called task_is_descendant(9), and it lives in the Kernel API Manual. It's giving β€œfamily tree detective” energy, and we're gonna walk through it together πŸ’…


✨ NAME ✨

task_is_descendant β€” walk up a process family tree looking for a match πŸ”ŽπŸŒ³


🫢 SYNOPSIS 🫢

int task_is_descendant (struct task_struct *parent , struct task_struct *child );

πŸŽ€ ARGUMENTS πŸŽ€

  • parent β€” the process you're comparing against while walking up from child πŸ‘‘
  • child β€” the process you start from while looking upwards for parent πŸ¦‹

πŸ’– DESCRIPTION πŸ’–

Returns 1 if child is a descendant of parent, and 0 if not. That's the whole vibe: a little yes-or-no family-tree check, no cap 😌✨


🌈 SEE ALSO 🌈


πŸŽ€ source/version/date check, bestie: source is ./security/yama, dated October 2026, and the page is task_is_descendant(9). Mwah πŸ’‹βœ¨
πŸ“¦ where this page comes from