pfind(9): Update to recent behavior
The pfind(9) manual page in FreeBSD contains outdated content, such as
references to zpfind() and the zombproc list, which have already been
removed.
Instead, there are new functions available for process search, as
defined in sys/proc.h:
- pfind_any(): Finds a process (including zombies) by its ID.
2, pfind_any_locked(): Finds a process by its ID like pfind but doesn't
find lock the process hash bucket. It assert the process hash bucket is lock or not.
In the current FreeBSD implementation, the allproc list is used, and the
p->p_state field can determine whether a process is a zombie or not.
I have attempted to revise the pfind(9) manual page as shown in my
patch. However, since English is not my native language, the
documentation team may need to refine my patch or not use it. My primary
goal is to highlight the outdated content for correction.
imp fixed a few markup bugs, tweaked language a little
PR: 283091
Reviewed by: imp