Define new MAP_SYNC flag and corresponding VMA VM_SYNC flag. As the MAP_SYNC flag is not part of LEGACY_MAP_MASK, currently it will be refused by all MAP_SHARED_VALIDATE map attempts and silently ignored for everything else.
Showing the changes to include/uapi (1 of 4 files). Show all
Unified · Split
| @@ -12,6 +12,7 @@ · 11 unmodified lines | ||
| 12 | 12 | #define MAP_NONBLOCK 0x10000 /* do not block on IO */ |
| 13 | 13 | #define MAP_STACK 0x20000 /* give out an address that is best suited for process/thread stacks */ |
| 14 | 14 | #define MAP_HUGETLB 0x40000 /* create a huge page mapping */ |
| 15 | +#define MAP_SYNC 0x80000 /* perform synchronous page faults for the mapping */ | |
| 15 | 16 | |
| 16 | 17 | /* Bits [26:31] are reserved, see mman-common.h for MAP_HUGETLB usage */ |
| 17 | 18 | |