Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
hugetlb.h File Reference
#include <asm/page.h>
#include <asm/pgtable.h>

Go to the source code of this file.

Macros

#define is_hugepage_only_range(mm, addr, len)   0
 
#define hugetlb_free_pgd_range   free_pgd_range
 
#define hugetlb_prefault_arch_hook(mm)   do { } while (0)
 
#define arch_clear_hugepage_flags(page)   do { } while (0)
 
#define huge_ptep_set_access_flags(__vma, __addr, __ptep, __entry, __dirty)
 
#define huge_ptep_set_wrprotect(__mm, __addr, __ptep)
 

Functions

void set_huge_pte_at (struct mm_struct *mm, unsigned long addr, pte_t *ptep, pte_t pte)
 
int arch_prepare_hugepage (struct page *page)
 
void arch_release_hugepage (struct page *page)
 

Macro Definition Documentation

#define arch_clear_hugepage_flags (   page)    do { } while (0)

Definition at line 36 of file hugetlb.h.

#define huge_ptep_set_access_flags (   __vma,
  __addr,
  __ptep,
  __entry,
  __dirty 
)
Value:
({ \
int __changed = !pte_same(huge_ptep_get(__ptep), __entry); \
if (__changed) { \
huge_ptep_invalidate((__vma)->vm_mm, __addr, __ptep); \
set_huge_pte_at((__vma)->vm_mm, __addr, __ptep, __entry); \
} \
__changed; \
})

Definition at line 104 of file hugetlb.h.

#define huge_ptep_set_wrprotect (   __mm,
  __addr,
  __ptep 
)
Value:
({ \
pte_t __pte = huge_ptep_get(__ptep); \
if (pte_write(__pte)) { \
huge_ptep_invalidate(__mm, __addr, __ptep); \
set_huge_pte_at(__mm, __addr, __ptep, \
huge_pte_wrprotect(__pte)); \
} \
})

Definition at line 114 of file hugetlb.h.

#define hugetlb_free_pgd_range   free_pgd_range

Definition at line 16 of file hugetlb.h.

#define hugetlb_prefault_arch_hook (   mm)    do { } while (0)

Definition at line 35 of file hugetlb.h.

#define is_hugepage_only_range (   mm,
  addr,
  len 
)    0

Definition at line 15 of file hugetlb.h.

Function Documentation

int arch_prepare_hugepage ( struct page page)

Definition at line 28 of file hugetlbpage.c.

void arch_release_hugepage ( struct page page)

Definition at line 51 of file hugetlbpage.c.

void set_huge_pte_at ( struct mm_struct mm,
unsigned long  addr,
pte_t ptep,
pte_t  pte 
)

Definition at line 12 of file hugetlbpage.c.