All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] proc.5: Add info about /proc/[pid]/map_files directory
@ 2013-02-18 16:50 Pavel Emelyanov
       [not found] ` <51225BF3.7080602-bzQdu9zFT3WakBO8gow8eQ@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Pavel Emelyanov @ 2013-02-18 16:50 UTC (permalink / raw)
  To: Michael Kerrisk, linux-man-u79uwXL29TY76Z2rM5mHXA

It was added into Linux v3.3 and provides info about files being mmap-ed in
a way _very_ similar to how /proc/[pid]/fd works. Thus I thought that the
best place for the map_files' doc is where where the fd's doc is.

Signed-off-by: Pavel Emelyanov <xemul-bzQdu9zFT3WakBO8gow8eQ@public.gmane.org>

---

diff --git a/man5/proc.5 b/man5/proc.5
index 30ca3a9..1226747 100644
--- a/man5/proc.5
+++ b/man5/proc.5
@@ -285,6 +285,23 @@ Thus the example command above could be written as:
 .RB "$" " foobar \-i /dev/stdin \-o /dev/stdout ..."
 .fi
 .in
+.TP
+.IR /proc/[pid]/map_files/ " (since kernel 3.3)
+This subdirectory contains entries corresponding to memory mapped
+files (see
+.BR mmap (2)).
+Entries are named by memory region start and end pair,
+and are symbolic links to the corresponding files.
+
+Although these entries are present for memory regions that were
+mapped with 
+.BR MAP_FILE
+flag, the way anonymous shared memory (regions created with
+.B MAP_ANON | MAP_SHARED
+flags)
+is implemented in Linux
+makes such regions also appear on this directory. In that case
+the target file would be the /dev/zero one.
 .\" FIXME Describe /proc/[pid]/loginuid
 .\"       Added in 2.6.11; updating requires CAP_AUDIT_CONTROL
 .\"       CONFIG_AUDITSYSCALL
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: [PATCH] proc.5: Add info about /proc/[pid]/map_files directory
       [not found] ` <51225BF3.7080602-bzQdu9zFT3WakBO8gow8eQ@public.gmane.org>
@ 2013-02-28 14:20   ` Michael Kerrisk (man-pages)
       [not found]     ` <CAKgNAki5SQu8UffqN_s6-1=nATPJaf+KSAPNkGzCPDyyRSupNw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Michael Kerrisk (man-pages) @ 2013-02-28 14:20 UTC (permalink / raw)
  To: Pavel Emelyanov; +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA

Hi Pavel,

On Mon, Feb 18, 2013 at 5:50 PM, Pavel Emelyanov <xemul-bzQdu9zFT3WakBO8gow8eQ@public.gmane.org> wrote:
> It was added into Linux v3.3 and provides info about files being mmap-ed in
> a way _very_ similar to how /proc/[pid]/fd works. Thus I thought that the
> best place for the map_files' doc is where where the fd's doc is.
>
> Signed-off-by: Pavel Emelyanov <xemul-bzQdu9zFT3WakBO8gow8eQ@public.gmane.org>

Could you please resubmit with some added text that shows an example
of what you see in this file (including a /dev/zero case)? Also, the
patch should mention that CONFIG_CHECKPOINT_RESTORE is required.

Thanks,

Michael

> ---
>
> diff --git a/man5/proc.5 b/man5/proc.5
> index 30ca3a9..1226747 100644
> --- a/man5/proc.5
> +++ b/man5/proc.5
> @@ -285,6 +285,23 @@ Thus the example command above could be written as:
>  .RB "$" " foobar \-i /dev/stdin \-o /dev/stdout ..."
>  .fi
>  .in
> +.TP
> +.IR /proc/[pid]/map_files/ " (since kernel 3.3)
> +This subdirectory contains entries corresponding to memory mapped
> +files (see
> +.BR mmap (2)).
> +Entries are named by memory region start and end pair,
> +and are symbolic links to the corresponding files.
> +
> +Although these entries are present for memory regions that were
> +mapped with
> +.BR MAP_FILE
> +flag, the way anonymous shared memory (regions created with
> +.B MAP_ANON | MAP_SHARED
> +flags)
> +is implemented in Linux
> +makes such regions also appear on this directory. In that case
> +the target file would be the /dev/zero one.
>  .\" FIXME Describe /proc/[pid]/loginuid
>  .\"       Added in 2.6.11; updating requires CAP_AUDIT_CONTROL
>  .\"       CONFIG_AUDITSYSCALL



-- 
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-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: [PATCH] proc.5: Add info about /proc/[pid]/map_files directory
       [not found]     ` <CAKgNAki5SQu8UffqN_s6-1=nATPJaf+KSAPNkGzCPDyyRSupNw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2013-04-16  6:02       ` Michael Kerrisk (man-pages)
       [not found]         ` <CAKgNAkigq6FW2oTG+JQBbpzEiK63K7WNZTyY2XN-huV4C78TOw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Michael Kerrisk (man-pages) @ 2013-04-16  6:02 UTC (permalink / raw)
  To: Pavel Emelyanov; +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA

Hi Pavel... Ping!

Cheers,

Michael

On Thu, Feb 28, 2013 at 3:20 PM, Michael Kerrisk (man-pages)
<mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> Hi Pavel,
>
> On Mon, Feb 18, 2013 at 5:50 PM, Pavel Emelyanov <xemul-bzQdu9zFT3WakBO8gow8eQ@public.gmane.org> wrote:
>> It was added into Linux v3.3 and provides info about files being mmap-ed in
>> a way _very_ similar to how /proc/[pid]/fd works. Thus I thought that the
>> best place for the map_files' doc is where where the fd's doc is.
>>
>> Signed-off-by: Pavel Emelyanov <xemul-bzQdu9zFT3WakBO8gow8eQ@public.gmane.org>
>
> Could you please resubmit with some added text that shows an example
> of what you see in this file (including a /dev/zero case)? Also, the
> patch should mention that CONFIG_CHECKPOINT_RESTORE is required.
>
> Thanks,
>
> Michael
>
>> ---
>>
>> diff --git a/man5/proc.5 b/man5/proc.5
>> index 30ca3a9..1226747 100644
>> --- a/man5/proc.5
>> +++ b/man5/proc.5
>> @@ -285,6 +285,23 @@ Thus the example command above could be written as:
>>  .RB "$" " foobar \-i /dev/stdin \-o /dev/stdout ..."
>>  .fi
>>  .in
>> +.TP
>> +.IR /proc/[pid]/map_files/ " (since kernel 3.3)
>> +This subdirectory contains entries corresponding to memory mapped
>> +files (see
>> +.BR mmap (2)).
>> +Entries are named by memory region start and end pair,
>> +and are symbolic links to the corresponding files.
>> +
>> +Although these entries are present for memory regions that were
>> +mapped with
>> +.BR MAP_FILE
>> +flag, the way anonymous shared memory (regions created with
>> +.B MAP_ANON | MAP_SHARED
>> +flags)
>> +is implemented in Linux
>> +makes such regions also appear on this directory. In that case
>> +the target file would be the /dev/zero one.
>>  .\" FIXME Describe /proc/[pid]/loginuid
>>  .\"       Added in 2.6.11; updating requires CAP_AUDIT_CONTROL
>>  .\"       CONFIG_AUDITSYSCALL
>
>
>
> --
> Michael Kerrisk
> Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
> Author of "The Linux Programming Interface"; http://man7.org/tlpi/



--
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-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: [PATCH] proc.5: Add info about /proc/[pid]/map_files directory
       [not found]         ` <CAKgNAkigq6FW2oTG+JQBbpzEiK63K7WNZTyY2XN-huV4C78TOw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2013-04-16 17:19           ` Pavel Emelyanov
  0 siblings, 0 replies; 4+ messages in thread
From: Pavel Emelyanov @ 2013-04-16 17:19 UTC (permalink / raw)
  To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w; +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA

On 04/16/2013 10:02 AM, Michael Kerrisk (man-pages) wrote:
> Hi Pavel... Ping!

Sorry, Michael...
This patch is in my man git tree for several weeks already,
I will re-send one soon.

> Cheers,
> 
> Michael
> 
> On Thu, Feb 28, 2013 at 3:20 PM, Michael Kerrisk (man-pages)
> <mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>> Hi Pavel,
>>
>> On Mon, Feb 18, 2013 at 5:50 PM, Pavel Emelyanov <xemul-bzQdu9zFT3WakBO8gow8eQ@public.gmane.org> wrote:
>>> It was added into Linux v3.3 and provides info about files being mmap-ed in
>>> a way _very_ similar to how /proc/[pid]/fd works. Thus I thought that the
>>> best place for the map_files' doc is where where the fd's doc is.
>>>
>>> Signed-off-by: Pavel Emelyanov <xemul-bzQdu9zFT3WakBO8gow8eQ@public.gmane.org>
>>
>> Could you please resubmit with some added text that shows an example
>> of what you see in this file (including a /dev/zero case)? Also, the
>> patch should mention that CONFIG_CHECKPOINT_RESTORE is required.
>>
>> Thanks,
>>
>> Michael
>>
>>> ---
>>>
>>> diff --git a/man5/proc.5 b/man5/proc.5
>>> index 30ca3a9..1226747 100644
>>> --- a/man5/proc.5
>>> +++ b/man5/proc.5
>>> @@ -285,6 +285,23 @@ Thus the example command above could be written as:
>>>  .RB "$" " foobar \-i /dev/stdin \-o /dev/stdout ..."
>>>  .fi
>>>  .in
>>> +.TP
>>> +.IR /proc/[pid]/map_files/ " (since kernel 3.3)
>>> +This subdirectory contains entries corresponding to memory mapped
>>> +files (see
>>> +.BR mmap (2)).
>>> +Entries are named by memory region start and end pair,
>>> +and are symbolic links to the corresponding files.
>>> +
>>> +Although these entries are present for memory regions that were
>>> +mapped with
>>> +.BR MAP_FILE
>>> +flag, the way anonymous shared memory (regions created with
>>> +.B MAP_ANON | MAP_SHARED
>>> +flags)
>>> +is implemented in Linux
>>> +makes such regions also appear on this directory. In that case
>>> +the target file would be the /dev/zero one.
>>>  .\" FIXME Describe /proc/[pid]/loginuid
>>>  .\"       Added in 2.6.11; updating requires CAP_AUDIT_CONTROL
>>>  .\"       CONFIG_AUDITSYSCALL
>>
>>
>>
>> --
>> Michael Kerrisk
>> Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
>> Author of "The Linux Programming Interface"; http://man7.org/tlpi/
> 
> 
> 
> --
> 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-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

end of thread, other threads:[~2013-04-16 17:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-18 16:50 [PATCH] proc.5: Add info about /proc/[pid]/map_files directory Pavel Emelyanov
     [not found] ` <51225BF3.7080602-bzQdu9zFT3WakBO8gow8eQ@public.gmane.org>
2013-02-28 14:20   ` Michael Kerrisk (man-pages)
     [not found]     ` <CAKgNAki5SQu8UffqN_s6-1=nATPJaf+KSAPNkGzCPDyyRSupNw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-04-16  6:02       ` Michael Kerrisk (man-pages)
     [not found]         ` <CAKgNAkigq6FW2oTG+JQBbpzEiK63K7WNZTyY2XN-huV4C78TOw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-04-16 17:19           ` Pavel Emelyanov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.