Copyright (c) 2001 Evan Sarmiento. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or ot...
NAMEpfind , zpfind - locate a process by number
SYNOPSISIn sys/param.h In sys/proc.h Ft struct proc * Fn pfind pid_t pid Ft struct proc * Fn zpfind pid_t pid
DESCRIPTIONFn pfind takes a Fa pid as its argument and returns a pointer to the Vt proc structure whose PID is specified in the argument only if the Fa pid is on the allproc list.
Fn zpfind takes a Fa pid as its argument. If Fn 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, Fn zpfind returns a pointer to that Vt proc structure.
Both Fn pfind and Fn zpfind lock the Vt proc structure that is returned using Fn PROC_LOCK p .