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

Go to the source code of this file.

Macros

#define PGDIR_SHIFT   31
 
#define PGDIR_SIZE   (1UL << PGDIR_SHIFT)
 
#define PGDIR_MASK   (~(PGDIR_SIZE-1))
 
#define PMD_SHIFT   21
 
#define PMD_SIZE   (1UL << PMD_SHIFT)
 
#define PMD_MASK   (~(PMD_SIZE-1))
 
#define PTRS_PER_PTE   512
 
#define PTRS_PER_PMD   1024
 
#define PTRS_PER_PGD   1024
 
#define USER_PTRS_PER_PGD   ((TASK_SIZE + (PGDIR_SIZE - 1)) / PGDIR_SIZE)
 
#define FIRST_USER_ADDRESS   0
 
#define pte_ERROR(e)
 
#define pmd_ERROR(e)
 
#define pgd_ERROR(e)
 
#define pud_none(x)   (!(pud_val(x) & ~_PAGE_NEWPAGE))
 
#define pud_bad(x)   ((pud_val(x) & (~PAGE_MASK & ~_PAGE_USER)) != _KERNPG_TABLE)
 
#define pud_present(x)   (pud_val(x) & _PAGE_PRESENT)
 
#define pud_populate(mm, pud, pmd)   set_pud(pud, __pud(_PAGE_TABLE + __pa(pmd)))
 
#define set_pud(pudptr, pudval)   (*(pudptr) = (pudval))
 
#define set_pmd(pmdptr, pmdval)   (*(pmdptr) = (pmdval))
 
#define pud_page(pud)   phys_to_page(pud_val(pud) & PAGE_MASK)
 
#define pud_page_vaddr(pud)   ((unsigned long) __va(pud_val(pud) & PAGE_MASK))
 
#define pmd_offset(pud, address)
 
#define PTE_FILE_MAX_BITS   32
 
#define pte_to_pgoff(pte)   ((pte).pte_high)
 
#define pgoff_to_pte(off)   ((pte_t) { _PAGE_FILE, (off) })
 

Functions

pmd_tpmd_alloc_one (struct mm_struct *mm, unsigned long address)
 

Macro Definition Documentation

#define FIRST_USER_ADDRESS   0

Definition at line 44 of file pgtable-3level.h.

#define pgd_ERROR (   e)
Value:
printk("%s:%d: bad pgd %p(%016lx).\n", __FILE__, __LINE__, &(e), \

Definition at line 52 of file pgtable-3level.h.

#define PGDIR_MASK   (~(PGDIR_SIZE-1))

Definition at line 20 of file pgtable-3level.h.

#define PGDIR_SHIFT   31

Definition at line 17 of file pgtable-3level.h.

#define PGDIR_SIZE   (1UL << PGDIR_SHIFT)

Definition at line 19 of file pgtable-3level.h.

#define pgoff_to_pte (   off)    ((pte_t) { _PAGE_FILE, (off) })

Definition at line 131 of file pgtable-3level.h.

#define pmd_ERROR (   e)
Value:
printk("%s:%d: bad pmd %p(%016lx).\n", __FILE__, __LINE__, &(e), \

Definition at line 49 of file pgtable-3level.h.

#define PMD_MASK   (~(PMD_SIZE-1))

Definition at line 28 of file pgtable-3level.h.

#define pmd_offset (   pud,
  address 
)
Value:

Definition at line 93 of file pgtable-3level.h.

#define PMD_SHIFT   21

Definition at line 26 of file pgtable-3level.h.

#define PMD_SIZE   (1UL << PMD_SHIFT)

Definition at line 27 of file pgtable-3level.h.

#define pte_ERROR (   e)
Value:
printk("%s:%d: bad pte %p(%016lx).\n", __FILE__, __LINE__, &(e), \

Definition at line 46 of file pgtable-3level.h.

#define PTE_FILE_MAX_BITS   32

Definition at line 119 of file pgtable-3level.h.

#define pte_to_pgoff (   pte)    ((pte).pte_high)

Definition at line 129 of file pgtable-3level.h.

#define PTRS_PER_PGD   1024

Definition at line 40 of file pgtable-3level.h.

#define PTRS_PER_PMD   1024

Definition at line 39 of file pgtable-3level.h.

#define PTRS_PER_PTE   512

Definition at line 34 of file pgtable-3level.h.

#define pud_bad (   x)    ((pud_val(x) & (~PAGE_MASK & ~_PAGE_USER)) != _KERNPG_TABLE)

Definition at line 57 of file pgtable-3level.h.

#define pud_none (   x)    (!(pud_val(x) & ~_PAGE_NEWPAGE))

Definition at line 56 of file pgtable-3level.h.

#define pud_page (   pud)    phys_to_page(pud_val(pud) & PAGE_MASK)

Definition at line 89 of file pgtable-3level.h.

#define pud_page_vaddr (   pud)    ((unsigned long) __va(pud_val(pud) & PAGE_MASK))

Definition at line 90 of file pgtable-3level.h.

#define pud_populate (   mm,
  pud,
  pmd 
)    set_pud(pud, __pud(_PAGE_TABLE + __pa(pmd)))

Definition at line 59 of file pgtable-3level.h.

#define pud_present (   x)    (pud_val(x) & _PAGE_PRESENT)

Definition at line 58 of file pgtable-3level.h.

#define set_pmd (   pmdptr,
  pmdval 
)    (*(pmdptr) = (pmdval))

Definition at line 78 of file pgtable-3level.h.

#define set_pud (   pudptr,
  pudval 
)    (*(pudptr) = (pudval))

Definition at line 65 of file pgtable-3level.h.

#define USER_PTRS_PER_PGD   ((TASK_SIZE + (PGDIR_SIZE - 1)) / PGDIR_SIZE)

Definition at line 43 of file pgtable-3level.h.

Function Documentation

pmd_t* pmd_alloc_one ( struct mm_struct mm,
unsigned long  address 
)