PROC_FIND(9) | Kernel Developer's Manual | PROC_FIND(9) |
proc_find
, pgrp_find
—
#include <sys/proc.h>
struct proc *
proc_find
(pid_t
pid);
struct pgrp *
pgrp_find
(pid_t
pgid);
extern kmutex_t *proc_lock;
proc_find
() and pgrp_find
()
functions retrieve process and process group structures from process ID
pid and process group ID pgid.
Both functions must be called by holding a
mutex(9) on
proc_lock.
NULL
is returned.
July 1, 2010 | NetBSD 9.2 |