summaryrefslogtreecommitdiff
path: root/man5
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2013-04-17 07:55:02 +0200
committerMichael Kerrisk <mtk.manpages@gmail.com>2013-04-17 07:55:02 +0200
commit18cdd0aca2c377ff2155df6342f36870bd29a90c (patch)
tree06632f24b64ac8bed2029357610806413a1f1789 /man5
parentb4f89985b9326f9e20bb0495422088de808b91e7 (diff)
proc.5: Minor fixes to Pavel's patch
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Diffstat (limited to 'man5')
-rw-r--r--man5/proc.527
1 files changed, 17 insertions, 10 deletions
diff --git a/man5/proc.5 b/man5/proc.5
index 1bfc63cc..43468943 100644
--- a/man5/proc.5
+++ b/man5/proc.5
@@ -59,7 +59,7 @@
.\" to see what information could be imported from that file
.\" into this file.
.\"
-.TH PROC 5 2013-03-15 "Linux" "Linux Programmer's Manual"
+.TH PROC 5 2013-04-17 "Linux" "Linux Programmer's Manual"
.SH NAME
proc \- process information pseudo-file system
.SH DESCRIPTION
@@ -288,34 +288,41 @@ Thus the example command above could be written as:
.in
.TP
.IR /proc/[pid]/map_files/ " (since kernel 3.3)
-This subdirectory contains entries corresponding to memory mapped
+.\" commit 640708a2cff7f81e246243b0073c66e6ece7e53e
+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 files themselves. Like this
+Entries are named by memory region start and end
+address pair (expressed as hexadecimal numbers),
+and are symbolic links to the mapped files themselves.
+Here is an example, with the output wrapped and reformatted to fit on an 80-column display:
.in +4n
.nf
.RB "$" " ls -l /proc/self/map_files/"
-lr--------. 1 root root 64 Apr 16 21:31 3252e00000-3252e20000 -> /usr/lib64/ld-2.15.so
+lr\-\-\-\-\-\-\-\-. 1 root root 64 Apr 16 21:31
+ 3252e00000\-3252e20000 \-> /usr/lib64/ld-2.15.so
\&...
.fi
.in
Although these entries are present for memory regions that were
-mapped with
+mapped with the
.BR MAP_FILE
-flag, the way anonymous shared memory (regions created with
+flag, the way anonymous shared memory (regions created with the
.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 deleted /dev/zero one:
+means that such regions also appear on this directory.
+Here is an example where the target file is the deleted
+.I /dev/zero
+one:
.in +4n
.nf
.RB
-lrw-------. 1 root root 64 Apr 16 21:33 7fc075d2f000-7fc075e6f000 -> /dev/zero (deleted)
+lrw\-\-\-\-\-\-\-. 1 root root 64 Apr 16 21:33
+ 7fc075d2f000\-7fc075e6f000 \-> /dev/zero (deleted)
.fi
.in