Mmap
Memory map - POSIX-compliant system call
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.
Nº Q1935626 ★
Common · Knowledge
Mmap
Memory map - POSIX-compliant system call
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.
From Wikipedia
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). In Linux, macOS and the BSDs, mmap can create several types of mappings. Other operating systems may only support a subset of these; for example, shared mappings may not be practical in an operating system without a global VFS or I/O cache.
Text: Wikipédia, CC BY-SA 4.0. ·
Related cards
-
M
Memory map
Data structure
Nº Q719484 ★★
Not listed
-
P
POSIX
Family of IEEE standards for compatibility between operating systems
Nº Q14658 ★★★
Not listed
-
File (command)
Standard Unix program
Nº Q181820 ★★★
Not listed
-
M
Memory-mapped file
Segment of virtual memory that has been assigned a direct byte-for-byte correlation with some portion of a file or file-like resource
Nº Q657179 ★
Not listed
-
PEEK and POKE
Low-level commands of the BASIC programming language
Nº Q382691 ★
Not listed
-
U
Unistd.h
POSIX C header
Nº Q2065456 ★
Not listed