{
    "mode": "man",
    "parameter": "proc_pid_maps",
    "section": "5",
    "url": "https://www.chedong.com/phpMan.php/man/proc_pid_maps/5/json",
    "generated": "2026-10-07T21:09:43Z",
    "sections": {
        "NAME": {
            "content": "/proc/pid/maps - mapped memory regions\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "/proc/pid/maps\nA  file  containing  the currently mapped memory regions and their access permissions.\nSee mmap(2) for some further information about memory mappings.\n\nPermission  to  access   this   file   is   governed   by   a   ptrace   access   mode\nPTRACEMODEREADFSCREDS check; see ptrace(2).\n\nThe format of the file is:\n\naddress           perms offset  dev   inode       pathname\n00400000-00452000 r-xp 00000000 08:02 173521      /usr/bin/dbus-daemon\n00651000-00652000 r--p 00051000 08:02 173521      /usr/bin/dbus-daemon\n00652000-00655000 rw-p 00052000 08:02 173521      /usr/bin/dbus-daemon\n00e03000-00e24000 rw-p 00000000 00:00 0           [heap]\n00e24000-011f7000 rw-p 00000000 00:00 0           [heap]\n...\n35b1800000-35b1820000 r-xp 00000000 08:02 135522  /usr/lib64/ld-2.15.so\n35b1a1f000-35b1a20000 r--p 0001f000 08:02 135522  /usr/lib64/ld-2.15.so\n35b1a20000-35b1a21000 rw-p 00020000 08:02 135522  /usr/lib64/ld-2.15.so\n35b1a21000-35b1a22000 rw-p 00000000 00:00 0\n35b1c00000-35b1dac000 r-xp 00000000 08:02 135870  /usr/lib64/libc-2.15.so\n35b1dac000-35b1fac000 ---p 001ac000 08:02 135870  /usr/lib64/libc-2.15.so\n35b1fac000-35b1fb0000 r--p 001ac000 08:02 135870  /usr/lib64/libc-2.15.so\n35b1fb0000-35b1fb2000 rw-p 001b0000 08:02 135870  /usr/lib64/libc-2.15.so\n...\nf2c6ff8c000-7f2c7078c000 rw-p 00000000 00:00 0    [stack:986]\n...\n7fffb2c0d000-7fffb2c2e000 rw-p 00000000 00:00 0   [stack]\n7fffb2d48000-7fffb2d49000 r-xp 00000000 00:00 0   [vdso]\n\nThe  address field is the address space in the process that the mapping occupies.  The\nperms field is a set of permissions:\n\nr = read\nw = write\nx = execute\ns = shared\np = private (copy on write)\n\nThe offset field is the offset into the file/whatever; dev is  the  device  (major:mi‐\nnor); inode is the inode on that device.  0 indicates that no inode is associated with\nthe memory region, as would be the case with BSS (uninitialized data).\n\nThe  pathname  field  will  usually  be the file that is backing the mapping.  For ELF\nfiles, you can easily coordinate with the offset field by looking at the Offset  field\nin the ELF program headers (readelf -l).\n\nThere are additional helpful pseudo-paths:\n\n[stack]\nThe initial process's (also known as the main thread's) stack.\n\n[stack:tid] (from Linux 3.4 to Linux 4.4)\nA  thread's  stack  (where  the  tid  is  a  thread ID).  It corresponds to the\n/proc/pid/task/tid/ path.  This field was removed in Linux 4.5, since providing\nthis information for a process with large numbers of threads is expensive.\n\n[vdso] The virtual dynamically linked shared object.  See vdso(7).\n\n[heap] The process's heap.\n\n[anon:name] (since Linux 5.17)\nA named private anonymous mapping.  Set with prctl(2) PRSETVMAANONNAME.\n\n[anonshmem:name] (since Linux 6.2)\nA named shared anonymous mapping.  Set with prctl(2) PRSETVMAANONNAME.\n\nIf the pathname field is blank, this is an anonymous mapping as obtained via  mmap(2).\nThere  is  no easy way to coordinate this back to a process's source, short of running\nit through gdb(1), strace(1), or similar.\n\npathname is shown unescaped except for newline characters, which are replaced with  an\noctal escape sequence.  As a result, it is not possible to determine whether the orig‐\ninal pathname contained a newline character or the literal \\012 character sequence.\n\nIf  the  mapping is file-backed and the file has been deleted, the string \" (deleted)\"\nis appended to the pathname.  Note that this is ambiguous too.\n\nUnder Linux 2.0, there is no field giving pathname.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "proc(5)\n\nLinux man-pages 6.7                          2023-09-07                             procpidmaps(5)",
            "subsections": []
        }
    },
    "summary": "/proc/pid/maps - mapped memory regions",
    "flags": [],
    "examples": [],
    "see_also": [
        {
            "name": "proc",
            "section": "5",
            "url": "https://www.chedong.com/phpMan.php/man/proc/5/json"
        }
    ]
}