| .. | .. |
|---|
| 49 | 49 | #define MADV_DONTFORK 10 /* don't inherit across fork */ |
|---|
| 50 | 50 | #define MADV_DOFORK 11 /* do inherit across fork */ |
|---|
| 51 | 51 | |
|---|
| 52 | +#define MADV_MERGEABLE 12 /* KSM may merge identical pages */ |
|---|
| 53 | +#define MADV_UNMERGEABLE 13 /* KSM may not merge identical pages */ |
|---|
| 54 | + |
|---|
| 55 | +#define MADV_HUGEPAGE 14 /* Worth backing with hugepages */ |
|---|
| 56 | +#define MADV_NOHUGEPAGE 15 /* Not worth backing with hugepages */ |
|---|
| 57 | + |
|---|
| 58 | +#define MADV_DONTDUMP 16 /* Explicity exclude from the core dump, |
|---|
| 59 | + overrides the coredump filter bits */ |
|---|
| 60 | +#define MADV_DODUMP 17 /* Clear the MADV_NODUMP flag */ |
|---|
| 61 | + |
|---|
| 62 | +#define MADV_WIPEONFORK 18 /* Zero memory on fork, child only */ |
|---|
| 63 | +#define MADV_KEEPONFORK 19 /* Undo MADV_WIPEONFORK */ |
|---|
| 64 | + |
|---|
| 52 | 65 | #define MADV_COLD 20 /* deactivate these pages */ |
|---|
| 53 | 66 | #define MADV_PAGEOUT 21 /* reclaim these pages */ |
|---|
| 54 | | - |
|---|
| 55 | | -#define MADV_MERGEABLE 65 /* KSM may merge identical pages */ |
|---|
| 56 | | -#define MADV_UNMERGEABLE 66 /* KSM may not merge identical pages */ |
|---|
| 57 | | - |
|---|
| 58 | | -#define MADV_HUGEPAGE 67 /* Worth backing with hugepages */ |
|---|
| 59 | | -#define MADV_NOHUGEPAGE 68 /* Not worth backing with hugepages */ |
|---|
| 60 | | - |
|---|
| 61 | | -#define MADV_DONTDUMP 69 /* Explicity exclude from the core dump, |
|---|
| 62 | | - overrides the coredump filter bits */ |
|---|
| 63 | | -#define MADV_DODUMP 70 /* Clear the MADV_NODUMP flag */ |
|---|
| 64 | | - |
|---|
| 65 | | -#define MADV_WIPEONFORK 71 /* Zero memory on fork, child only */ |
|---|
| 66 | | -#define MADV_KEEPONFORK 72 /* Undo MADV_WIPEONFORK */ |
|---|
| 67 | 67 | |
|---|
| 68 | 68 | #define MADV_HWPOISON 100 /* poison a page for testing */ |
|---|
| 69 | 69 | #define MADV_SOFT_OFFLINE 101 /* soft offline page for testing */ |
|---|
| 70 | 70 | |
|---|
| 71 | 71 | /* compatibility flags */ |
|---|
| 72 | 72 | #define MAP_FILE 0 |
|---|
| 73 | | -#define MAP_VARIABLE 0 |
|---|
| 74 | 73 | |
|---|
| 75 | 74 | #define PKEY_DISABLE_ACCESS 0x1 |
|---|
| 76 | 75 | #define PKEY_DISABLE_WRITE 0x2 |
|---|