{
    "mode": "man",
    "parameter": "proc_pid_map_files",
    "section": "5",
    "url": "https://www.chedong.com/phpMan.php/man/proc_pid_map_files/5/json",
    "generated": "2026-10-04T08:58:24Z",
    "sections": {
        "NAME": {
            "content": "/proc/pid/mapfiles/ - memory-mapped files\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "/proc/pid/mapfiles/ (since Linux 3.3)\nThis subdirectory contains entries corresponding to memory-mapped files (see mmap(2)).\nEntries  are named by memory region start and end address pair (expressed as hexadeci‐\nmal numbers), and are symbolic links to the mapped files themselves.  Here is an exam‐\nple, with the output wrapped and reformatted to fit on an 80-column display:\n\n# ls -l /proc/self/mapfiles/\nlr--------. 1 root root 64 Apr 16 21:31\n3252e00000-3252e20000 -> /usr/lib64/ld-2.15.so\n...\n\nAlthough these entries are present for  memory  regions  that  were  mapped  with  the\nMAPFILE  flag,  the  way anonymous shared memory (regions created with the MAPANON |\nMAPSHARED flags) is implemented in Linux means that such regions also appear on  this\ndirectory.  Here is an example where the target file is the deleted /dev/zero one:\n\nlrw-------. 1 root root 64 Apr 16 21:33\n7fc075d2f000-7fc075e6f000 -> /dev/zero (deleted)\n\nPermission   to   access   this   file   is   governed   by   a   ptrace  access  mode\nPTRACEMODEREADFSCREDS check; see ptrace(2).\n\nUntil Linux 4.3, this directory appeared only if the CONFIGCHECKPOINTRESTORE  kernel\nconfiguration option was enabled.\n\nCapabilities  are  required  to read the contents of the symbolic links in this direc‐\ntory: before Linux 5.9, the reading process requires CAPSYSADMIN in the initial user\nnamespace; since Linux 5.9, the reading process  must  have  either  CAPSYSADMIN  or\nCAPCHECKPOINTRESTORE in the initial (i.e. root) user namespace.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "proc(5)\n\nLinux man-pages 6.7                          2023-08-15                        procpidmapfiles(5)",
            "subsections": []
        }
    },
    "summary": "/proc/pid/mapfiles/ - memory-mapped files",
    "flags": [],
    "examples": [],
    "see_also": [
        {
            "name": "proc",
            "section": "5",
            "url": "https://www.chedong.com/phpMan.php/man/proc/5/json"
        }
    ]
}