trace_pid_list_first(9)
β¨ NAME β¨
okay so this is the trace_pid_list_first(9) page from the Kernel API Manual, and the whole vibe is literally return the first pid in the list. thatβs it, thatβs the name, iconic and to the point π
π¦ SYNOPSIS π¦
the signature is exactly this, no edits bestie:
int trace_pid_list_first (struct trace_pid_list *pid_list , unsigned int
*pid );
π ARGUMENTS π
pid_listβ the pid list youβre examining. like, the list itself. πpidβ the pointer where the first found pid that is set gets placed. yes bestie, thatβs where the pid lands. π―
π DESCRIPTION π
so it looks for the first pid that is set in pid_list, and places it into pid if found. no cap. π«Ά
return values are giving very clear: 0 when a pid is found, and -1 if there are no pids set. periodt. π
π₯ SEE ALSO π₯
the kernel file is ./kernel/trace/pid_list.c β and the whole squad is here: trace_pid_list_is_set(9), trace_pid_list_set(9), trace_pid_list_clear(9), trace_pid_list_next(9), trace_pid_list_alloc(9), trace_pid_list_free(9). go off, little pid-list family π
mwah π β signed off from the ./kernel/trace corner of the kernel, dated October 2026 π
π¦ 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