DeAI Research
Source · Wikipedia

Mmap

year unknown

cid bd2d46469b665fe2cbfce862d4fc1f050fd231ffbe7377bf8773636542ec6d18 · original · open access · via wikipedia

Title: Mmap
Authors: 
Venue: Wikipedia
Year: unknown
Canonical: wiki:mmap
URL: https://en.wikipedia.org/wiki/Mmap
Collector: wikipedia
OA: true

ABSTRACT
In computing, mmap(2) is a POSIX-compliant Unix system call that maps files or devices into memory. It is a method of memory-mapped file I/O. It implements demand paging because file contents are not immediately read from disk and initially use no physical RAM at all. The actual reads from disk are performed after a specific location is accessed, in a lazy manner. After the mapping is no longer needed, the pointers must be unmapped with munmap(2). Protection information—for example, marking mapped regions as executable—can be managed using mprotect(2), and special treatment can be enforced using madvise(2).