trace_pid_list_set(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ 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:


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