pgrp_find(9) netbsd man page | unix.com

Man Page: pgrp_find

Operating Environment: netbsd

Section: 9

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

NAME
proc_find, pgrp_find -- find process or process group
SYNOPSIS
#include <sys/proc.h> struct proc * proc_find(pid_t pid); struct pgrp * pgrp_find(pid_t pgid); extern kmutex_t *proc_lock;
DESCRIPTION
The 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.
RETURN VALUES
Upon successful completion, the described functions return a pointer to either struct proc or struct pgrp. Otherwise, if the requested ID was not found, NULL is returned.
SEE ALSO
curproc(9)
BSD
July 1, 2010 BSD
Related Man Pages
setpgid(2) - opensolaris
pgsignal(9) - debian
setpgid(2) - netbsd
pgsignal(9) - linux
pgsignal(9) - suse
Similar Topics in the Unix Linux Community
Memory Leaks
Better to Use Return Code or wc -l Output?
Vm versus physical linux server
Make bold chars in UNIX
BSD Unix Toolbox: 1000+ Commands for FreeBSD, OpenBSD, and NetBSD