trace_pid_start(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so bestie, this is the Kernel API Manual, section 9, and the main character energy today belongs to trace_pid_start πŸ’…βœ¨ she's lowkey iconic and here to help seq_file start reading pid lists. no cap, ngl.

🌸 NAME 🌸

trace_pid_start β€” used for seq_file to start reading pid lists. that's the vibe check, fr fr β€” slay. it's giving "start the pid list" realness, literally.

✨ SYNOPSIS ✨

here's the signature, and yes you gotta keep it exactly like this, bestie:

void * trace_pid_start (struct trace_pid_list *pid_list , loff_t *pos );

πŸŽ€ ARGUMENTS πŸŽ€

  • pid_list β€” the pid list to show. like, the actual list on display, bestie 🫢 highkey the whole point.
  • pos β€” the position of the file. your little bookmark in the file, iykyk.

πŸ’– DESCRIPTION πŸ’–

so seq_file uses this for its "start" operation β€” it's the thing that starts the iteration of listing pids. the way that it kicks off the whole list? obsessed, honestly. it ate. not me getting emotional over a start operation 😭

it returns pid+1 because we want to display a pid of zero, but returning NULL would stop the iteration. and we are not stopping the iteration, periodt πŸ’€ that would be so not iconic.

πŸ¦‹ SEE ALSO πŸ¦‹

the kernel file is ./kernel/trace/trace_pid.c, and the squad is:


mwah πŸ’‹ this page comes from ./kernel/trace, dated October 2026, and it's trace_pid_start(9) all day. bye bestie 🫢🌷

πŸ“¦ where this page comes from