Mmap: Difference between revisions

From Hackepedia
Jump to navigationJump to search
write some blah blah
(No difference)

Revision as of 07:54, 28 March 2013

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.