logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

pfind, zpfind — locate a process by number

Authors

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

Debian                                            July 11, 2001                                         PFIND(9)

Description

pfind() 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.

       zpfind() 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 pfind() and zpfind() lock the proc structure that is returned using PROC_LOCK(p).

Name

       pfind, zpfind — locate a process by number

Return Values

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

See Also

pgfind(9)

Synopsis

#include<sys/param.h>#include<sys/proc.h>structproc*pfind(pid_tpid);

       structproc*zpfind(pid_tpid);

See Also