trace_pid_list_set(9)
π NAME π
okay bestie, welcome to the Kernel API Manual β today's main character is trace_pid_list_set(9), and its whole vibe is: add a pid to the list. slay. β¨
β¨ SYNOPSIS β¨
int trace_pid_list_set (struct trace_pid_list *pid_list , unsigned int
pid );
π¦ ARGUMENTS π¦
pid_listβ the pid list you're adding the pid to, obviously πpidβ the pid you're adding. that's it, that's the argument π«Ά
πΈ DESCRIPTION πΈ
So this function adds pid to pid_list. iconic behavior, no cap. Usually this happens explicitly when a user adds a task to be traced β very "I choose you" energy. It can also happen indirectly by the fork function when children should be traced and a task's pid is in the list. iykyk. π₯
Return 0 on success, negative otherwise. periodt. If you get negative, that is not a success vibe, bestie π.
π SEE ALSO π
Kernel file ./kernel/trace/pid_list.c β go read it, it's giving source-of-truth. Also check out these icons:
trace_pid_list_is_set(9)trace_pid_list_clear(9)trace_pid_list_next(9)trace_pid_list_first(9)trace_pid_list_alloc(9)trace_pid_list_free(9)
mwah π that's the whole page β source/version: ./kernel/trace, date: October 2026. drink water and check your return values, bestie π
π¦ 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