pgfind(9) locate a process group by number

SYNOPSIS

In sys/param.h In sys/proc.h Ft struct pgrp * Fn pgfind pid_t pgid

DESCRIPTION

The Fn pgfind function takes a Fa pgid as its argument and returns a pointer to the Vt pgrp structure whose pg_id is specified in the argument.

Fn pgfind locks the Vt pgrp structure that is returned.

RETURN VALUES

The Fn pgfind function returns NULL on failure or a pointer to a Vt pgrp structure on successful completion.

AUTHORS

This manual page was written by An Evan Sarmiento Aq [email protected] .