task_is_descendant(9)
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 fromchildπchildβ the process you start from while looking upwards forparentπ¦
π 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 π
- Kernel file:
./security/yama/yama_lsm.cπ yama_relation_cleanup(9)yama_ptracer_add(9)yama_ptracer_del(9)yama_task_free(9)yama_task_prctl(9)ptracer_exception_found(9)yama_ptrace_access_check(9)yama_ptrace_traceme(9)
π source/version/date check, bestie: source is./security/yama, datedOctober 2026, and the page istask_is_descendant(9). 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