Values
ANONYMOUS | type | don’t use a file |
FIXED | comptime_int | Interpret addr exactly |
FIXED_NOREPLACE | comptime_int | MAP_FIXED which doesn’t unmap underlying mapping |
HUGETLB | type | create a huge page mapping |
NONBLOCK | type | do not block on IO |
POPULATE | type | populate (prefault) pagetables |
PRIVATE | comptime_int | Changes are private |
SHARED | comptime_int | Share changes |
SHARED_VALIDATE | comptime_int | share + validate extension flags |
STACK | type | give out an address that is best suited for process/thread stacks |
SYNC | comptime_int | perform synchronous page faults for the mapping |
TYPE | comptime_int | Mask for type of mapping |
UNINITIALIZED | comptime_int | For anonymous mmap, memory could be uninitialized |