Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Enumerations | Functions | Variables
mmap.c File Reference
#include <linux/compiler.h>
#include <linux/errno.h>
#include <linux/mm.h>
#include <linux/mman.h>
#include <linux/module.h>
#include <linux/personality.h>
#include <linux/random.h>
#include <linux/sched.h>

Go to the source code of this file.

Macros

#define MIN_GAP   (128*1024*1024UL)
 
#define MAX_GAP   ((TASK_SIZE)/6*5)
 
#define COLOUR_ALIGN(addr, pgoff)
 

Enumerations

enum  mmap_allocation_direction { UP, DOWN }
 

Functions

 EXPORT_SYMBOL (shm_align_mask)
 
unsigned long arch_get_unmapped_area (struct file *filp, unsigned long addr0, unsigned long len, unsigned long pgoff, unsigned long flags)
 
unsigned long arch_get_unmapped_area_topdown (struct file *filp, unsigned long addr0, unsigned long len, unsigned long pgoff, unsigned long flags)
 
void arch_pick_mmap_layout (struct mm_struct *mm)
 
unsigned long arch_randomize_brk (struct mm_struct *mm)
 

Variables

unsigned long shm_align_mask = PAGE_SIZE - 1
 

Macro Definition Documentation

#define COLOUR_ALIGN (   addr,
  pgoff 
)
Value:
(((pgoff) << PAGE_SHIFT) & shm_align_mask))

Definition at line 60 of file mmap.c.

#define MAX_GAP   ((TASK_SIZE)/6*5)

Definition at line 23 of file mmap.c.

#define MIN_GAP   (128*1024*1024UL)

Definition at line 22 of file mmap.c.

Enumeration Type Documentation

Enumerator:
UP 
DOWN 

Definition at line 64 of file mmap.c.

Function Documentation

unsigned long arch_get_unmapped_area ( struct file filp,
unsigned long  addr0,
unsigned long  len,
unsigned long  pgoff,
unsigned long  flags 
)

Definition at line 203 of file mmap.c.

unsigned long arch_get_unmapped_area_topdown ( struct file filp,
unsigned long  addr0,
unsigned long  len,
unsigned long  pgoff,
unsigned long  flags 
)

Definition at line 214 of file mmap.c.

void arch_pick_mmap_layout ( struct mm_struct mm)

Definition at line 222 of file mmap.c.

unsigned long arch_randomize_brk ( struct mm_struct mm)

Definition at line 260 of file mmap.c.

EXPORT_SYMBOL ( shm_align_mask  )

Variable Documentation

unsigned long shm_align_mask = PAGE_SIZE - 1

Definition at line 18 of file mmap.c.