proc.5: Add info about /proc/[pid]/map_files directory
PATCH 1/1 proc.5: Add info about /proc/[pid]/map_files directory
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.
---
man5/proc.5 +17 -0
@@ -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 [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): [email protected]
Hi Pavel,
Quoted 5 lines · Pavel Emelyanov
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 <[email protected]>
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
Quoted 30 lines
---
man5/proc.5 +17
-0@@ -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
Signature · 7 lines
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 [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): CAKgNAki5SQu8UffqN_s6-1=nATPJaf+KSAPNkGzCPDyyRSupNw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org
Hi Pavel... Ping!
Cheers,
Michael
Quoted 46 lines · Michael Kerrisk (man-pages)
Hi Pavel,
Quoted 5 lines · Pavel Emelyanov
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 <[email protected]>Could you please resubmit with some added text that shows an example of what you see in this file (including a
/dev/zerocase)? Also, the patch should mention thatCONFIG_CHECKPOINT_RESTOREis required.Thanks,
Michael
Quoted 29 lines
---
man5/proc.5 +17
-0@@ -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
Quoted 8 lines
man5/proc.5 Thus the example command above could be written as: · line 307
Quoted 1 line
man5/proc.5 +0
-0.\" 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 [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): CAKgNAkigq6FW2oTG+JQBbpzEiK63K7WNZTyY2XN-huV4C78TOw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org
Quoted 1 line · Michael Kerrisk (man-pages)
Hi Pavel... Ping!
Sorry, Michael...
This patch is in my man git tree for several weeks already, I will re-send one soon.
Quoted 63 lines
Cheers,
Michael
Quoted 46 lines · Michael Kerrisk (man-pages)
Hi Pavel,
Quoted 5 lines · Pavel Emelyanov
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 <[email protected]>Could you please resubmit with some added text that shows an example of what you see in this file (including a
/dev/zerocase)? Also, the patch should mention thatCONFIG_CHECKPOINT_RESTOREis required.Thanks,
Michael
Quoted 29 lines
---
man5/proc.5 +17
-0@@ -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_CONTROLQuoted 8 lines
man5/proc.5 Thus the example command above could be written as: · line 307
Quoted 1 line
man5/proc.5 +0
-0.\" 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/
Quoted 6 lines
--
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 [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html