History

mm: Define MAP_SYNC and VM_SYNC flags

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.

Jan Kara committed 9 years ago

Commit b6fb2931 parent f5b7b744 files · +9 −2Browse files

Showing the changes to include/uapi (1 of 4 files). Show all

Unified · Split

include/uapi/asm-generic/mman.h+1−0
@@ -12,6 +12,7 @@ · 11 unmodified lines
1212 #define MAP_NONBLOCK 0x10000 /* do not block on IO */
1313 #define MAP_STACK 0x20000 /* give out an address that is best suited for process/thread stacks */
1414 #define MAP_HUGETLB 0x40000 /* create a huge page mapping */
15+#define MAP_SYNC 0x80000 /* perform synchronous page faults for the mapping */
1516
1617 /* Bits [26:31] are reserved, see mman-common.h for MAP_HUGETLB usage */
1718

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t