PGFIND(9)

hey bestie, welcome to PGFIND(9) β€” the pgfind page from the Kernel Developer's Manual. It's giving kernel-dev realness, and it's shorter than your ex's attention span, so let's go. πŸ’…


NAME πŸŽ€

pgfind β€” locate a process group by number. no cap, that's the whole name vibe.

SYNOPSIS ✨

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

struct pgrp *
pgfind(pid_t pgid);

DESCRIPTION πŸ¦‹

okay so pgfind() takes a pgid as its argument and returns a pointer to the pgrp structure whose pg_id is specified in the argument.

and the part you cannot forget: pgfind() locks the pgrp structure that is returned. so yeah, returned struct = locked. periodt.

RETURN VALUES 🌈

pgfind() returns NULL on failure, or a pointer to a pgrp structure on successful completion. that's it, that's the tea. πŸ’–

SEE ALSO πŸ‘‘

pfind(9)

AUTHORS 🫢

This manual page was written by Evan Sarmiento <kaworu@sektor7.ath.cx>.


tiny sign-off: this page is from Debian, dated August 8, 2001, and its manual-page title is PGFIND(9). mwah πŸ’‹
πŸ“¦ where this page comes from