Page MenuHomeFreeBSD

ps(1): cleanup
ClosedPublic

Authored by kib on Sat, Nov 9, 2:16 AM.
Tags
None
Referenced Files
F102802910: D47492.diff
Sun, Nov 17, 9:24 AM
F102767862: D47492.id146191.diff
Sat, Nov 16, 9:56 PM
Unknown Object (File)
Sat, Nov 16, 1:54 AM
Unknown Object (File)
Tue, Nov 12, 1:57 AM
Unknown Object (File)
Mon, Nov 11, 11:52 AM
Unknown Object (File)
Sat, Nov 9, 9:42 PM
Unknown Object (File)
Sat, Nov 9, 8:40 PM
Unknown Object (File)
Sat, Nov 9, 5:51 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 Skipped
Unit
Tests Skipped

Event Timeline

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

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.Sat, Nov 9, 3:43 AM