HomeFreeBSD

ps(1): find_varentry() to take a name instead of a VAR

Description

ps(1): find_varentry() to take a name instead of a VAR

The only information that find_varentry() needs and uses is
a keyword/var name. The rest of the fields in the passed VAR are
unused.

Changing its signature will ease introducing new calls to
find_varentry() in subsequent commits, as there no VAR object will exist
to be passed but just a name.

Reviewed by: kib
MFC after: 3 days
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D49609

(cherry picked from commit c1e5a7fdad631458768fc45a82b4d43bade8d0c8)

Details

Provenance
olceAuthored on Feb 28 2025, 9:25 AM
Reviewer
kib
Differential Revision
D49609: ps(1): find_varentry() to take a name instead of a VAR
Parents
rGb90923b63bf3: ps(1): Have parsefmt() take the list of columns to update
Branches
Unknown
Tags
Unknown