HomeFreeBSD

kinfo_proc: move job-control related data collection into a new helper.

Description

kinfo_proc: move job-control related data collection into a new helper.

This improves code structure and allows to put the lock asserts right
into place where the locks are needed.

Also move zeroing of the kinfo_proc structure from fill_kinfo_proc_only()
to fill_kinfo_proc(), this looks more symmetrical.

Reviewed by: jilles
Tested by: pho
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D27871

Details

Provenance
kibAuthored on Dec 31 2020, 10:46 PM
Reviewer
jilles
Differential Revision
D27871: Rework jobc handling.
Parents
R10:4daea938130b: Lock proctree in around fill_kinfo_proc().
Branches
Unknown
Tags
Unknown