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 π
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
- debian bookworm: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- debian trixie: freebsd-manpages 12.2-2 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu jammy: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu noble: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu questing: freebsd-manpages 12.2-2
- ubuntu resolute: freebsd-manpages 12.2-2build1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu stonking: freebsd-manpages 12.2-2build1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- Copyright (c) 2001 Evan Sarmiento
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms