File tree Expand file tree Collapse file tree 1 file changed +3
-11
lines changed
tools/include/uapi/asm-generic Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Original file line number Diff line number Diff line change 58
58
overrides the coredump filter bits */
59
59
#define MADV_DODUMP 17 /* Clear the MADV_DONTDUMP flag */
60
60
61
+ #define MADV_WIPEONFORK 18 /* Zero memory on fork, child only */
62
+ #define MADV_KEEPONFORK 19 /* Undo MADV_WIPEONFORK */
63
+
61
64
/* compatibility flags */
62
65
#define MAP_FILE 0
63
66
64
- /*
65
- * When MAP_HUGETLB is set bits [26:31] encode the log2 of the huge page size.
66
- * This gives us 6 bits, which is enough until someone invents 128 bit address
67
- * spaces.
68
- *
69
- * Assume these are all power of twos.
70
- * When 0 use the default page size.
71
- */
72
- #define MAP_HUGE_SHIFT 26
73
- #define MAP_HUGE_MASK 0x3f
74
-
75
67
#define PKEY_DISABLE_ACCESS 0x1
76
68
#define PKEY_DISABLE_WRITE 0x2
77
69
#define PKEY_ACCESS_MASK (PKEY_DISABLE_ACCESS |\
You can’t perform that action at this time.
0 commit comments