PGFIND(9)

πŸ“¦ version 15.1, in freebsd 14.5, freebsd 15.1, nixpkgs unstable

πŸ’– PGFIND(9) β€” Kernel Developer's Manual πŸ’–

okay bestie, this is the PGFIND(9) page from the Kernel Developer's Manual, and it’s literally about locating a process group by number. tiny page, main character energy, no cap.


🌸 NAME 🌸

pgfind β€” locate a process group by number

✨ SYNOPSIS ✨

#include <sys/param.h>
#include <sys/proc.h>

struct pgrp *
pgfind(pid_t pgid);

πŸ’… DESCRIPTION πŸ’…

so pgfind() takes a pgid as its argument and returns a pointer to the pgrp structure whose pg_id is specified in the argument. it’s giving β€œfind that process group” fr fr.

and bestie, important detail: pgfind() locks the pgrp structure that is returned. πŸ”’βœ¨

πŸ¦‹ RETURN VALUES πŸ¦‹

  • pgfind() returns NULL on failure.
  • on successful completion, it returns a pointer to a pgrp structure.

like, either you get the pointer or you get NULL. simple. iconic. periodt.

πŸŽ€ SEE ALSO πŸŽ€

🌈 AUTHORS 🌈

this manual page was written by Evan Sarmiento <kaworu@sektor7.ath.cx> β€” ty bestie 🫢


and that’s the whole vibe πŸ’– shoutout to Debian for the source/version, dated August 8, 2001 β€” mwah, kiss kiss πŸ’‹βœ¨

πŸ“¦ where this page comes from