Go to the documentation of this file.
25 #include <linux/personality.h>
27 #include <linux/random.h>
28 #include <linux/sched.h>
40 #define MIN_GAP32 (128*1024*1024)
41 #define MIN_GAP64 ((128 + 1024)*1024*1024UL)
42 #define MIN_GAP ((is_32bit_task()) ? MIN_GAP32 : MIN_GAP64)
43 #define MAX_GAP (TASK_SIZE/6*5)
45 static inline int mmap_is_legacy(
void)
56 static unsigned long mmap_rnd(
void)
58 unsigned long rnd = 0;
70 static inline unsigned long mmap_base(
void)
92 if (mmap_is_legacy()) {