Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
hugetlbpage.c File Reference
#include <linux/init.h>
#include <linux/fs.h>
#include <linux/mm.h>
#include <linux/hugetlb.h>
#include <linux/pagemap.h>
#include <linux/module.h>
#include <linux/sysctl.h>
#include <linux/log2.h>
#include <asm/mman.h>
#include <asm/pgalloc.h>
#include <asm/tlb.h>
#include <asm/tlbflush.h>

Go to the source code of this file.

Macros

#define mk_pte_huge(entry)   { pte_val(entry) |= _PAGE_P; }
 

Functions

 EXPORT_SYMBOL (hpage_shift)
 
pte_thuge_pte_alloc (struct mm_struct *mm, unsigned long addr, unsigned long sz)
 
pte_thuge_pte_offset (struct mm_struct *mm, unsigned long addr)
 
int huge_pmd_unshare (struct mm_struct *mm, unsigned long *addr, pte_t *ptep)
 
int prepare_hugepage_range (struct file *file, unsigned long addr, unsigned long len)
 
struct pagefollow_huge_addr (struct mm_struct *mm, unsigned long addr, int write)
 
int pmd_huge (pmd_t pmd)
 
int pud_huge (pud_t pud)
 
struct pagefollow_huge_pmd (struct mm_struct *mm, unsigned long address, pmd_t *pmd, int write)
 
void hugetlb_free_pgd_range (struct mmu_gather *tlb, unsigned long addr, unsigned long end, unsigned long floor, unsigned long ceiling)
 
unsigned long hugetlb_get_unmapped_area (struct file *file, unsigned long addr, unsigned long len, unsigned long pgoff, unsigned long flags)
 
 early_param ("hugepagesz", hugetlb_setup_sz)
 

Variables

unsigned int hpage_shift = HPAGE_SHIFT_DEFAULT
 

Macro Definition Documentation

#define mk_pte_huge (   entry)    { pte_val(entry) |= _PAGE_P; }

Definition at line 73 of file hugetlbpage.c.

Function Documentation

early_param ( "hugepagesz"  ,
hugetlb_setup_sz   
)
EXPORT_SYMBOL ( hpage_shift  )
struct page* follow_huge_addr ( struct mm_struct mm,
unsigned long  addr,
int  write 
)
read

Definition at line 92 of file hugetlbpage.c.

struct page* follow_huge_pmd ( struct mm_struct mm,
unsigned long  address,
pmd_t pmd,
int  write 
)
read

Definition at line 118 of file hugetlbpage.c.

int huge_pmd_unshare ( struct mm_struct mm,
unsigned long addr,
pte_t ptep 
)

Definition at line 68 of file hugetlbpage.c.

pte_t* huge_pte_alloc ( struct mm_struct mm,
unsigned long  addr,
unsigned long  sz 
)

Definition at line 28 of file hugetlbpage.c.

pte_t* huge_pte_offset ( struct mm_struct mm,
unsigned long  addr 
)

Definition at line 47 of file hugetlbpage.c.

void hugetlb_free_pgd_range ( struct mmu_gather tlb,
unsigned long  addr,
unsigned long  end,
unsigned long  floor,
unsigned long  ceiling 
)

Definition at line 123 of file hugetlbpage.c.

unsigned long hugetlb_get_unmapped_area ( struct file file,
unsigned long  addr,
unsigned long  len,
unsigned long  pgoff,
unsigned long  flags 
)

Definition at line 148 of file hugetlbpage.c.

int pmd_huge ( pmd_t  pmd)

Definition at line 107 of file hugetlbpage.c.

int prepare_hugepage_range ( struct file file,
unsigned long  addr,
unsigned long  len 
)

Definition at line 79 of file hugetlbpage.c.

int pud_huge ( pud_t  pud)

Definition at line 112 of file hugetlbpage.c.

Variable Documentation

unsigned int hpage_shift = HPAGE_SHIFT_DEFAULT

Definition at line 24 of file hugetlbpage.c.