First page Back Continue Last page Overview Graphics
mmap (1)
Possibility to have parts of the virtual address space of a program mapped to the contents of a file!
> cat /proc/1/maps (init process)
start end perm offset major:minor inode mapped file name
00771000-0077f000 r-xp 00000000 03:05 1165839 /lib/libselinux.so.1
0077f000-00781000 rw-p 0000d000 03:05 1165839 /lib/libselinux.so.1
0097d000-00992000 r-xp 00000000 03:05 1158767 /lib/ld-2.3.3.so
00992000-00993000 r--p 00014000 03:05 1158767 /lib/ld-2.3.3.so
00993000-00994000 rw-p 00015000 03:05 1158767 /lib/ld-2.3.3.so
00996000-00aac000 r-xp 00000000 03:05 1158770 /lib/tls/libc-2.3.3.so
00aac000-00aad000 r--p 00116000 03:05 1158770 /lib/tls/libc-2.3.3.so
00aad000-00ab0000 rw-p 00117000 03:05 1158770 /lib/tls/libc-2.3.3.so
00ab0000-00ab2000 rw-p 00ab0000 00:00 0
08048000-08050000 r-xp 00000000 03:05 571452 /sbin/init (text)
08050000-08051000 rw-p 00008000 03:05 571452 /sbin/init (data, stack)
08b43000-08b64000 rw-p 08b43000 00:00 0
f6fdf000-f6fe0000 rw-p f6fdf000 00:00 0
fefd4000-ff000000 rw-p fefd4000 00:00 0
ffffe000-fffff000 ---p 00000000 00:00 0