previous | start | next

Copy on Write

        mmap(NULL, size, PROT_READ, MAP_PRIVATE | MAP_ANON, 0, 0);
                                                            |  |
                                                           fd, offset
     

MAP_PRIVATE indicates a copy on write segment will be created.

MAP_ANON and fd = 0 indicates there is no associated named file and the segment pages will be demand-zero.



previous | start | next