[Bug 287682] The sysctl(3) man page lacks doc of the KERN_PROC_INC_THREAD modifier flag
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 20 Jun 2025 15:48:13 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=287682
Bug ID: 287682
Summary: The sysctl(3) man page lacks doc of the
KERN_PROC_INC_THREAD modifier flag
Product: Documentation
Version: Latest
Hardware: Any
OS: Any
Status: New
Severity: Affects Some People
Priority: ---
Component: Manual Pages
Assignee: bugs@FreeBSD.org
Reporter: haraldei-freebsdbugz@anduin.net
CC: doc@FreeBSD.org
Passing KERN_PROC_PID|KERN_PROC_INC_THREAD as the third element of the mib to
sysctl the call will return an array of kinfo_proc entries, one for each thread
of the process with the given pid.
This is documented in the manual for libprocstat using the procstat_getprocs
function, but not for sysctl. It would make sense to have it mentioned there as
well.
See https://git.anduin.net/haraldei/bsd-thread-time-example for an example of
this use.
--
You are receiving this mail because:
You are on the CC list for the bug.