Page MenuHomeFreeBSD

ps(1): cleanup
ClosedPublic

Authored by kib on Nov 9 2024, 2:16 AM.
Tags
None
Referenced Files
F148500479: D47492.id146204.diff
Wed, Mar 18, 7:04 AM
Unknown Object (File)
Feb 7 2026, 10:34 PM
Unknown Object (File)
Feb 7 2026, 5:15 PM
Unknown Object (File)
Feb 7 2026, 5:11 PM
Unknown Object (File)
Jan 31 2026, 12:18 PM
Unknown Object (File)
Jan 27 2026, 8:38 AM
Unknown Object (File)
Jan 12 2026, 4:56 PM
Unknown Object (File)
Dec 29 2025, 8:35 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