Page MenuHomeFreeBSD

ps(1): cleanup
ClosedPublic

Authored by kib on Nov 9 2024, 2:16 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Mar 17, 8:06 AM
Unknown Object (File)
Mon, Mar 17, 12:45 AM
Unknown Object (File)
Feb 22 2025, 5:19 AM
Unknown Object (File)
Jan 21 2025, 5:44 AM
Unknown Object (File)
Jan 17 2025, 10:34 PM
Unknown Object (File)
Jan 8 2025, 3:15 AM
Unknown Object (File)
Jan 7 2025, 2:07 AM
Unknown Object (File)
Dec 24 2024, 2:14 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