Files
linux_media/Documentation/filesystems
Chunguang Wu 522dc4e5f5 fs/proc: add Kthread flag to /proc/$pid/status
The command `ps -ef ` and `top -c` mark kernel thread by '[' and ']', but
sometimes the result is not correct.  The task->flags in /proc/$pid/stat
is good, but we need remember the value of PF_KTHREAD is 0x00200000 and
convert dec to hex.  If we have no binary program and shell script which
read /proc/$pid/stat, we can know it directly by `cat /proc/$pid/status`.

Link: https://lkml.kernel.org/r/20230416052404.2920-1-fullspring2018@gmail.com
Signed-off-by: Chunguang Wu <fullspring2018@gmail.com>
Reviewed-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Alexey Dobriyan <adobriyan@gmail.com>
Cc: Jonathan Corbet <corbet@lwn.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2023-04-21 14:54:34 -07:00
..
2022-10-05 01:15:38 -05:00
2022-08-02 12:34:04 -04:00
2023-01-06 15:13:16 -08:00
2020-12-10 12:40:07 -06:00
2023-01-19 09:24:28 +01:00
2022-10-20 10:13:27 +02:00
2020-07-09 08:14:01 +02:00
2022-11-09 13:57:59 -07:00
2020-12-15 12:13:39 -08:00
2021-03-25 11:51:23 -06:00