[Bug 283091] pfind(9) man page outdated
- In reply to: bugzilla-noreply_a_freebsd.org: "[Bug 283091] pfind(9) man page outdated"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 06 Dec 2024 16:48:49 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=283091
--- Comment #3 from commit-hook@FreeBSD.org ---
A commit in branch main references this bug:
URL:
https://cgit.FreeBSD.org/src/commit/?id=07d78399eb7994d45338f58a331dae9fb8fe1023
commit 07d78399eb7994d45338f58a331dae9fb8fe1023
Author: Yan-Hao Wang <bses30074@gmail.com>
AuthorDate: 2024-12-06 16:23:35 +0000
Commit: Warner Losh <imp@FreeBSD.org>
CommitDate: 2024-12-06 16:47:31 +0000
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:
1. 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
share/man/man9/pfind.9 | 49 +++++++++++++++++++++++++++----------------------
1 file changed, 27 insertions(+), 22 deletions(-)
--
You are receiving this mail because:
You are on the CC list for the bug.