pgfind(9freebsd)

pgfind9freebsd

Locate a process group by number

Usage

#include <sys/param.h>

#include <sys/proc.h>

struct pgrp *

pgfind(pid_t pgid);

Overview

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

pgfind() locks the pgrp structure that is returned.

Return values

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

Releases

9 releases since Debian 5.0 (Lenny); the text changed 6 times.

  1. 5.0
  2. 6.0
  3. 7
  4. 8
  5. 9
  6. 10
  7. 11–13

Authors

This manual page was written by Evan Sarmiento ⟨[email protected]⟩.

From freebsd-manpages 12.2-2 in Debian 13 (Trixie). Parsed by carta from the page's mdoc source.