mmap() is a POSIX1b function that maps a region of a file into memory. If several processes maps the same or overlapping regions of the same file, they will effectively share the memory. A special case is mmap:ing /dev/zero which results in a new anonymous region each time mapped.