PGFIND(9)
π 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()returnsNULLon failure.- on successful completion, it returns a pointer to a
pgrpstructure.
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
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- nixpkgs unstable: source
- Copyright (c) 2001 Evan Sarmiento
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms