Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
slice.c File Reference
#include <linux/kernel.h>
#include <linux/mm.h>
#include <linux/pagemap.h>
#include <linux/err.h>
#include <linux/spinlock.h>
#include <linux/export.h>
#include <asm/mman.h>
#include <asm/mmu.h>
#include <asm/spu.h>

Go to the source code of this file.

Macros

#define slice_dbg(fmt...)
 
#define or_mask(dst, src)
 
#define andnot_mask(dst, src)
 
#define MMU_PAGE_BASE   MMU_PAGE_4K
 

Functions

unsigned long slice_get_unmapped_area (unsigned long addr, unsigned long len, unsigned long flags, unsigned int psize, int topdown, int use_cache)
 
 EXPORT_SYMBOL_GPL (slice_get_unmapped_area)
 
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)
 
unsigned int get_slice_psize (struct mm_struct *mm, unsigned long addr)
 
 EXPORT_SYMBOL_GPL (get_slice_psize)
 
void slice_set_user_psize (struct mm_struct *mm, unsigned int psize)
 
void slice_set_psize (struct mm_struct *mm, unsigned long address, unsigned int psize)
 
void slice_set_range_psize (struct mm_struct *mm, unsigned long start, unsigned long len, unsigned int psize)
 
int is_hugepage_only_range (struct mm_struct *mm, unsigned long addr, unsigned long len)
 

Macro Definition Documentation

#define andnot_mask (   dst,
  src 
)
Value:
do { \
(dst).low_slices &= ~(src).low_slices; \
(dst).high_slices &= ~(src).high_slices; \
} while (0)

Definition at line 405 of file slice.c.

#define MMU_PAGE_BASE   MMU_PAGE_4K

Definition at line 413 of file slice.c.

#define or_mask (   dst,
  src 
)
Value:
do { \
(dst).low_slices |= (src).low_slices; \
(dst).high_slices |= (src).high_slices; \
} while (0)

Definition at line 400 of file slice.c.

#define slice_dbg (   fmt...)

Definition at line 73 of file slice.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 582 of file slice.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 593 of file slice.c.

EXPORT_SYMBOL_GPL ( slice_get_unmapped_area  )
EXPORT_SYMBOL_GPL ( get_slice_psize  )
unsigned int get_slice_psize ( struct mm_struct mm,
unsigned long  addr 
)

Definition at line 604 of file slice.c.

int is_hugepage_only_range ( struct mm_struct mm,
unsigned long  addr,
unsigned long  len 
)

Definition at line 743 of file slice.c.

unsigned long slice_get_unmapped_area ( unsigned long  addr,
unsigned long  len,
unsigned long  flags,
unsigned int  psize,
int  topdown,
int  use_cache 
)

Definition at line 416 of file slice.c.

void slice_set_psize ( struct mm_struct mm,
unsigned long  address,
unsigned int  psize 
)

Definition at line 685 of file slice.c.

void slice_set_range_psize ( struct mm_struct mm,
unsigned long  start,
unsigned long  len,
unsigned int  psize 
)

Definition at line 716 of file slice.c.

void slice_set_user_psize ( struct mm_struct mm,
unsigned int  psize 
)

Definition at line 636 of file slice.c.