Date: Fri, 06 Dec 2024 16:48:49 +0000 From: bugzilla-noreply@freebsd.org To: doc@FreeBSD.org Subject: [Bug 283091] pfind(9) man page outdated Message-ID: <bug-283091-9-LpAYpJh4zW@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-283091-9@https.bugs.freebsd.org/bugzilla/> References: <bug-283091-9@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D283091 --- Comment #3 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D07d78399eb7994d45338f58a331dae9fb= 8fe1023 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(-) --=20 You are receiving this mail because: You are on the CC list for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-283091-9-LpAYpJh4zW>