Re: proc(5): minor text updates

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Tolga,

On Mon, Aug 13, 2012 at 7:13 PM, Tolga Dalman
<tolga.dalman@xxxxxxxxxxxxxx> wrote:
> Hi Michael,
>
> On 08/13/12 09:35, Michael Kerrisk (man-pages) wrote:
>>> while reading the /proc/[pid]/stat part in proc(5), I noticed two minor
>>> issues that should be fixed:
>>>
>>> 1. The text reads: "flags %u (%lu before Linux 2.6.22) kernel flags word
>>> of the process. For bit meanings, see  the  PF_*  defines  in
>>> <linux/sched.h>."
>>>
>>> PF_* is obvisously wrong. It should be CLONE_*.
>>
>> I haven't looked closely, but I think PF_* is correct. Why do you think
>> it's wrong?
>
> To my understanding, flags contains process flags (i.e., CLONE_*), which
> are defined in <linux/sched.h>. PF_* flags, on the other hand, specify
> protocol flags. Those are not related to <linux/sched.h> at all, but defined
> in <bits/socket.h>

Ahh -- yes, an easy mistake to make I think. The thing is there are
two unrelated sets of constants in the PF_* namespace. Take a look in
linux/sched.h to see the other set, which is (AFAICS) the set that is
used in this /proc file.

Cheers,

Michael


-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Author of "The Linux Programming Interface"; http://man7.org/tlpi/
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux