unixdev.net


Switch to SpeakEasy.net DSL

The Modular Manual Browser

Home Page
Manual: (OpenBSD-5.7)
Page:
Section:
Apropos / Subsearch:
optional field

PFIND(9)                 BSD Kernel Developer's Manual                PFIND(9)

NAME
     pfind, pgfind -- find process / process group by number

SYNOPSIS
     #include <&lt;sys/cdefs.h>&gt;
     #include <&lt;sys/proc.h>&gt;

     struct proc *
     pfind(pid_t pid);

     struct pgrp *
     pgfind(pid_t pgid);

DESCRIPTION
     The pfind() and pgfind() functions retrieve process and progress group
     structures from process and process group IDs.

     Both functions return NULL if the requested ID can't be found.

CODE REFERENCES
     Those functions are implemented in the file sys/kern/kern_proc.c.

BSD                              June 4, 2013                              BSD