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

Go to the source code of this file.

Macros

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

Functions

unsigned long arch_get_unmapped_area (struct file *filp, unsigned long addr, unsigned long len, unsigned long pgoff, unsigned long flags)
 
unsigned long arch_get_unmapped_area_topdown (struct file *filp, const unsigned long addr0, const unsigned long len, const unsigned long pgoff, const unsigned long flags)
 
void arch_pick_mmap_layout (struct mm_struct *mm)
 
int valid_phys_addr_range (unsigned long addr, size_t size)
 
int valid_mmap_phys_addr_range (unsigned long pfn, size_t size)
 

Macro Definition Documentation

#define COLOUR_ALIGN (   addr,
  pgoff 
)
Value:
((((addr)+SHMLBA-1)&~(SHMLBA-1)) + \
(((pgoff)<<PAGE_SHIFT) & (SHMLBA-1)))

Definition at line 26 of file mmap.c.

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

Definition at line 32 of file mmap.c.

#define MIN_GAP   (128*1024*1024UL)

Definition at line 31 of file mmap.c.

Function Documentation

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

Definition at line 67 of file mmap.c.

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

Definition at line 150 of file mmap.c.

void arch_pick_mmap_layout ( struct mm_struct mm)

Definition at line 258 of file mmap.c.

int valid_mmap_phys_addr_range ( unsigned long  pfn,
size_t  size 
)

Definition at line 297 of file mmap.c.

int valid_phys_addr_range ( unsigned long  addr,
size_t  size 
)

Definition at line 282 of file mmap.c.