public inbox for linux-man@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] proc.5: PID/stat: add I, fix P state doc
@ 2021-08-04  2:15 Kir Kolyshkin
  2021-08-04  7:21 ` Alejandro Colomar (man-pages)
  0 siblings, 1 reply; 2+ messages in thread
From: Kir Kolyshkin @ 2021-08-04  2:15 UTC (permalink / raw)
  To: linux-man; +Cc: alx.manpages, mtk.manpages, Kir Kolyshkin

1. The I state was not documented -- add it.

2. The P state was documented to be absent since Linux 3.13.
   It appears it has been reintroduced in Linux 4.14. Document
   it, and move the description up (so that currently present
   states will be above the ones that got removed).

3. Consolidate the two descriptions of W state.

This way, the set of states documented matches those that are present
as of Linux v5.14-rc4 ("RSDTtXZPI").

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
---
 man5/proc.5 | 19 +++++++++++--------
 1 file changed, 11 insertions(+), 8 deletions(-)

diff --git a/man5/proc.5 b/man5/proc.5
index 69f6e15dd..d6027c469 100644
--- a/man5/proc.5
+++ b/man5/proc.5
@@ -2099,10 +2099,18 @@ Stopped (on a signal) or (before Linux 2.6.33) trace stopped
 .IP t
 .\" commit 44d90df6b757c59651ddd55f1a84f28132b50d29
 Tracing stop (Linux 2.6.33 onward)
-.IP W
-Paging (only before Linux 2.6.0)
 .IP X
 Dead (from Linux 2.6.0 onward)
+.IP I
+.\" commit 06eb61844d841d0032a9950ce7f8e783ee49c0d0
+Idle kernel thread (Linux 4.14 onward)
+.IP P
+.\" commit f2530dc71cf0822f90bb63ea4600caaef33a66bb
+Parked (Linux 3.9 to
+.\" commit 74e37200de8e9c4e09b70c21c3f13c2071e77457
+3.13,
+.\" commit 8ef9925b02c23e3838d5e593c5cf37984141150f
+from 4.14 onwards)
 .IP x
 .\" commit 44d90df6b757c59651ddd55f1a84f28132b50d29
 Dead (Linux 2.6.33 to
@@ -2117,12 +2125,7 @@ Wakekill (Linux 2.6.33 to
 .\" commit 44d90df6b757c59651ddd55f1a84f28132b50d29
 Waking (Linux 2.6.33 to
 .\" commit 74e37200de8e9c4e09b70c21c3f13c2071e77457
-3.13 only)
-.IP P
-.\" commit f2530dc71cf0822f90bb63ea4600caaef33a66bb
-Parked (Linux 3.9 to
-.\" commit 74e37200de8e9c4e09b70c21c3f13c2071e77457
-3.13 only)
+3.13 only) or (before Linux 2.6.0) paging
 .RE
 .TP
 (4) \fIppid\fP \ %d
-- 
2.32.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] proc.5: PID/stat: add I, fix P state doc
  2021-08-04  2:15 [PATCH] proc.5: PID/stat: add I, fix P state doc Kir Kolyshkin
@ 2021-08-04  7:21 ` Alejandro Colomar (man-pages)
  0 siblings, 0 replies; 2+ messages in thread
From: Alejandro Colomar (man-pages) @ 2021-08-04  7:21 UTC (permalink / raw)
  To: Kir Kolyshkin; +Cc: mtk.manpages, linux-man

Hi Kir,

On 8/4/21 4:15 AM, Kir Kolyshkin wrote:
> 1. The I state was not documented -- add it.
> 
> 2. The P state was documented to be absent since Linux 3.13.
>     It appears it has been reintroduced in Linux 4.14. Document
>     it, and move the description up (so that currently present
>     states will be above the ones that got removed).
> 
> 3. Consolidate the two descriptions of W state.
> 
> This way, the set of states documented matches those that are present
> as of Linux v5.14-rc4 ("RSDTtXZPI").
> 
> Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>

Thanks for the patch!  Please see a few minor comments below.

Thanks,

Alex

> ---
>   man5/proc.5 | 19 +++++++++++--------
>   1 file changed, 11 insertions(+), 8 deletions(-)
> 
> diff --git a/man5/proc.5 b/man5/proc.5
> index 69f6e15dd..d6027c469 100644
> --- a/man5/proc.5
> +++ b/man5/proc.5
> @@ -2099,10 +2099,18 @@ Stopped (on a signal) or (before Linux 2.6.33) trace stopped
>   .IP t
>   .\" commit 44d90df6b757c59651ddd55f1a84f28132b50d29
>   Tracing stop (Linux 2.6.33 onward)
> -.IP W
> -Paging (only before Linux 2.6.0)
>   .IP X
>   Dead (from Linux 2.6.0 onward)
> +.IP I
> +.\" commit 06eb61844d841d0032a9950ce7f8e783ee49c0d0
> +Idle kernel thread (Linux 4.14 onward)
> +.IP P
> +.\" commit f2530dc71cf0822f90bb63ea4600caaef33a66bb
> +Parked (Linux 3.9 to
> +.\" commit 74e37200de8e9c4e09b70c21c3f13c2071e77457
> +3.13,
> +.\" commit 8ef9925b02c23e3838d5e593c5cf37984141150f
> +from 4.14 onwards)

s/onwards/onward/

I'd add an "and" before "from", or change s/,/;/

>   .IP x
>   .\" commit 44d90df6b757c59651ddd55f1a84f28132b50d29
>   Dead (Linux 2.6.33 to
> @@ -2117,12 +2125,7 @@ Wakekill (Linux 2.6.33 to
>   .\" commit 44d90df6b757c59651ddd55f1a84f28132b50d29
>   Waking (Linux 2.6.33 to
>   .\" commit 74e37200de8e9c4e09b70c21c3f13c2071e77457
> -3.13 only)
> -.IP P
> -.\" commit f2530dc71cf0822f90bb63ea4600caaef33a66bb
> -Parked (Linux 3.9 to
> -.\" commit 74e37200de8e9c4e09b70c21c3f13c2071e77457
> -3.13 only)
> +3.13 only) or (before Linux 2.6.0) paging
>   .RE
>   .TP
>   (4) \fIppid\fP \ %d
> 


-- 
Alejandro Colomar
Linux man-pages comaintainer; https://www.kernel.org/doc/man-pages/
http://www.alejandro-colomar.es/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-08-04  7:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-08-04  2:15 [PATCH] proc.5: PID/stat: add I, fix P state doc Kir Kolyshkin
2021-08-04  7:21 ` Alejandro Colomar (man-pages)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox