mirror of
https://github.com/drasko/codezero.git
synced 2026-01-12 10:53:16 +01:00
mmap() with MAP_ANON | MAP_SHARED is used for creating shared memory mappings that can be shared among a process and its descendants (think fork()) Currently shmget/at creates shared virtual files on the fly and calls do_mmap to create anonymous shared mappings. Now sys_mmap uses this interface to create virtual files on the fly and call do_mmap on those files. In the future a common shared virtual file creation method should be added and commonly used by both interfaces.