.. | .. |
---|
34 | 34 | /* |
---|
35 | 35 | * Flags for mmap |
---|
36 | 36 | */ |
---|
37 | | -#define MAP_SHARED 0x001 /* Share changes */ |
---|
38 | | -#define MAP_PRIVATE 0x002 /* Changes are private */ |
---|
39 | | -#define MAP_SHARED_VALIDATE 0x003 /* share + validate extension flags */ |
---|
| 37 | +/* 0x01 - 0x03 are defined in linux/mman.h */ |
---|
40 | 38 | #define MAP_TYPE 0x00f /* Mask for type of mapping */ |
---|
41 | 39 | #define MAP_FIXED 0x010 /* Interpret addr exactly */ |
---|
42 | 40 | |
---|
.. | .. |
---|
58 | 56 | #define MAP_STACK 0x40000 /* give out an address that is best suited for process/thread stacks */ |
---|
59 | 57 | #define MAP_HUGETLB 0x80000 /* create a huge page mapping */ |
---|
60 | 58 | #define MAP_FIXED_NOREPLACE 0x100000 /* MAP_FIXED which doesn't unmap underlying mapping */ |
---|
61 | | -#ifdef CONFIG_MMAP_ALLOW_UNINITIALIZED |
---|
62 | | -# define MAP_UNINITIALIZED 0x4000000 /* For anonymous mmap, memory could be |
---|
| 59 | +#define MAP_UNINITIALIZED 0x4000000 /* For anonymous mmap, memory could be |
---|
63 | 60 | * uninitialized */ |
---|
64 | | -#else |
---|
65 | | -# define MAP_UNINITIALIZED 0x0 /* Don't support this flag */ |
---|
66 | | -#endif |
---|
67 | 61 | |
---|
68 | 62 | /* |
---|
69 | 63 | * Flags for msync |
---|
.. | .. |
---|
109 | 103 | #define MADV_WIPEONFORK 18 /* Zero memory on fork, child only */ |
---|
110 | 104 | #define MADV_KEEPONFORK 19 /* Undo MADV_WIPEONFORK */ |
---|
111 | 105 | |
---|
| 106 | +#define MADV_COLD 20 /* deactivate these pages */ |
---|
| 107 | +#define MADV_PAGEOUT 21 /* reclaim these pages */ |
---|
| 108 | + |
---|
112 | 109 | /* compatibility flags */ |
---|
113 | 110 | #define MAP_FILE 0 |
---|
114 | 111 | |
---|