About

mmap() is a system call that allows for very fast and convenient file I/O. A file that is mapped into memory can be accessed like any memory region.

mmap() can also be used for inter-process communication: a process that creates an anonymous mapping that is not backed by any file can share this region with any child process since memory mappings are preserved across fork().

Note that pipes and socket cannot be mapped.

history | show excerpt | excerpt history