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: [email protected]
          Reporter: [email protected]
                CC: [email protected]

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.

Reply via email to