|
NAMEpget —
locate a process by number
SYNOPSIS#include <sys/param.h>
#include <sys/proc.h>
int
DESCRIPTIONThis function takes a pid as its argument, which can be either a process or thread id, and fills a pointer to the proc structure in *pp. In the latter case, a process owning the specified thread is looked for. The operation is performed by invoking the pfind(9) function. The found process is returned locked. For thePGET_HOLD case, it is returned unlocked (but held).
The pget () function can perform additional
manipulations, depending on a flags argument.
The flags argument is the logical OR of some subset of:
RETURN VALUESIf the process is found in the specified way, then zero is returned, otherwise an appropriate error code is returned.SEE ALSOp_candebug(9), p_cansee(9), pfind(9)
Visit the GSP FreeBSD Man Page Interface. |