DOKK / manpages / debian 10 / freebsd-manpages / pgfind.9freebsd.en
PGFIND(9) Kernel Developer's Manual PGFIND(9)

pgfindlocate a process group by number

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

struct pgrp *
pgfind(pid_t pgid);

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

() locks the pgrp structure that is returned.

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

pfind(9)

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

August 8, 2001 Debian