Mmap

From Hackepedia
Revision as of 07:54, 28 March 2013 by Pbug (talk | contribs) (write some blah blah)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

mmap is a system call to set up a memory mapping. If an anonymous region of memory is memory mapped it's similar to malloc'ing memory. When the MAP_SHARED flag is given to mmap on an anonymous region then that region is shared across all childs of a process (result of forking). This is simple shared memory setup.