History

arch: move common mmap flags to linux/mman.h

Now that we have 3 mmap flags shared by all architectures, let's move them into the common header. This will help discourage future architectures from duplicating code.

Michael S. Tsirkin committed 7 years ago

Commit 746c9391 parent 852661a6 files · +9 −15Browse files

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

Unified · Split

include/uapi/linux/mman.h+4−0
@@ -12,6 +12,10 @@ · 11 unmodified lines
1212 #define OVERCOMMIT_ALWAYS 1
1313 #define OVERCOMMIT_NEVER 2
1414
15+#define MAP_SHARED 0x01 /* Share changes */
16+#define MAP_PRIVATE 0x02 /* Changes are private */
17+#define MAP_SHARED_VALIDATE 0x03 /* share + validate extension flags */
18+
1519 /*
1620 * Huge page size encoding when MAP_HUGETLB is specified, and a huge page
1721 * size other than the default is desired. See hugetlb_encode.h.