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

pfind, zpfindlocate a process by number

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

struct proc *
pfind(pid_t pid);

struct proc *
zpfind(pid_t pid);

() takes a pid as its argument and returns a pointer to the proc structure whose PID is specified in the argument only if the pid is on the allproc list.

() takes a pid as its argument. If zpfind() finds a process whose PID is equal to that of argument and is a zombie process, meaning that it must reside on the zombproc list, zpfind() returns a pointer to that proc structure.

Both () and zpfind() lock the proc structure that is returned using (p).

pfind() and zpfind() return a pointer to a proc structure on success and a NULL on failure.

pgfind(9)

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

July 11, 2001 Debian