Page MenuHomeFreeBSD

ps(1): cleanup
ClosedPublic

Authored by kib on Nov 9 2024, 2:16 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Jan 21, 5:44 AM
Unknown Object (File)
Fri, Jan 17, 10:34 PM
Unknown Object (File)
Wed, Jan 8, 3:15 AM
Unknown Object (File)
Tue, Jan 7, 2:07 AM
Unknown Object (File)
Dec 24 2024, 2:14 PM
Unknown Object (File)
Dec 15 2024, 5:46 PM
Unknown Object (File)
Nov 30 2024, 10:49 PM
Unknown Object (File)
Nov 27 2024, 1:09 PM
Subscribers

Details

Summary
sys/proc.h: add comments to the flag2 bits

ps.1: document rest of flag2 bits

ps.1: visually align process flags hex values by filling leading zeroes

ps(1): clean up after swapout removal

The process flag P_INMEM is always set.  Eliminate all checks for the
bit.  Also eliminate LAZY_PS define and code covered by it: we  do not
have an u-area for long time, and it cannot be swapped out.

Also eliminate setting controlled by the '-f' switch, but accept it for
backward compatibility.

The 'W' process secondary state (swapped out) is impossible, stop
calculating it.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

kib requested review of this revision.Nov 9 2024, 2:16 AM
bin/ps/ps.1
392

Why keep these flags? P_INMEM is still there but the others are not.

kib marked an inline comment as done.

Drop P_SWAP* descriptions.

This revision is now accepted and ready to land.Nov 9 2024, 3:43 AM