Bug 283093 - Kernel function pfind_any_locked comment wrong
Summary: Kernel function pfind_any_locked comment wrong
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: Unspecified
Hardware: Any Any
: --- Affects Many People
Assignee: Warner Losh
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-12-03 10:32 UTC by Yan-Hao Wang
Modified: 2024-12-06 16:48 UTC (History)
2 users (show)

See Also:


Attachments
The patch (377 bytes, patch)
2024-12-03 10:32 UTC, Yan-Hao Wang
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Yan-Hao Wang 2024-12-03 10:32:18 UTC
Created attachment 255596 [details]
The patch

The comment of the pfind_any_locked function in the kernel (kern_proc.c) is incorrect. It does not only find zombie processes.

I have also updated the related manual page, pfind(9). You can refer to bug #283091 for more details.

This patch addresses several versions greater than the 13.3 release.
Comment 1 Warner Losh freebsd_committer freebsd_triage 2024-12-06 16:33:36 UTC
grabbing, tweaking and committing.
Comment 2 Warner Losh freebsd_committer freebsd_triage 2024-12-06 16:48:38 UTC
Fixed. No MFC plans.
Comment 3 commit-hook freebsd_committer freebsd_triage 2024-12-06 16:48:48 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=509300e1ffbe71a6f6608fa188dbcfe4ae1fbbdf

commit 509300e1ffbe71a6f6608fa188dbcfe4ae1fbbdf
Author:     Yan-Hao Wang <bses30074@gmail.com>
AuthorDate: 2024-12-06 16:46:38 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2024-12-06 16:47:40 +0000

    pfind: Fix coments

    PR: 283093
    Reviewed by: imp

 sys/kern/kern_proc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)