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

Go to the source code of this file.

Macros

#define PGDIR_SHIFT   22
 
#define PGDIR_SIZE   (1UL << PGDIR_SHIFT)
 
#define PGDIR_MASK   (~(PGDIR_SIZE-1))
 
#define PTRS_PER_PTE   1024
 
#define USER_PTRS_PER_PGD   ((TASK_SIZE + (PGDIR_SIZE - 1)) / PGDIR_SIZE)
 
#define PTRS_PER_PGD   1024
 
#define FIRST_USER_ADDRESS   0
 
#define pte_ERROR(e)
 
#define pgd_ERROR(e)
 
#define set_pmd(pmdptr, pmdval)   (*(pmdptr) = (pmdval))
 
#define pte_pfn(x)   phys_to_pfn(pte_val(x))
 
#define pfn_pte(pfn, prot)   __pte(pfn_to_phys(pfn) | pgprot_val(prot))
 
#define pfn_pmd(pfn, prot)   __pmd(pfn_to_phys(pfn) | pgprot_val(prot))
 
#define PTE_FILE_MAX_BITS   27
 
#define pte_to_pgoff(pte)   (pte_val(pte) >> 5)
 
#define pgoff_to_pte(off)   ((pte_t) { ((off) << 5) + _PAGE_FILE })
 

Macro Definition Documentation

#define FIRST_USER_ADDRESS   0

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

#define pfn_pmd (   pfn,
  prot 
)    __pmd(pfn_to_phys(pfn) | pgprot_val(prot))

Definition at line 42 of file pgtable-2level.h.

#define pfn_pte (   pfn,
  prot 
)    __pte(pfn_to_phys(pfn) | pgprot_val(prot))

Definition at line 41 of file pgtable-2level.h.

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

Definition at line 31 of file pgtable-2level.h.

#define PGDIR_MASK   (~(PGDIR_SIZE-1))

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

#define PGDIR_SHIFT   22

Definition at line 15 of file pgtable-2level.h.

#define PGDIR_SIZE   (1UL << PGDIR_SHIFT)

Definition at line 16 of file pgtable-2level.h.

#define pgoff_to_pte (   off)    ((pte_t) { ((off) << 5) + _PAGE_FILE })

Definition at line 51 of file pgtable-2level.h.

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

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

#define PTE_FILE_MAX_BITS   27

Definition at line 47 of file pgtable-2level.h.

#define pte_pfn (   x)    phys_to_pfn(pte_val(x))

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

#define pte_to_pgoff (   pte)    (pte_val(pte) >> 5)

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

#define PTRS_PER_PGD   1024

Definition at line 25 of file pgtable-2level.h.

#define PTRS_PER_PTE   1024

Definition at line 23 of file pgtable-2level.h.

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

Definition at line 38 of file pgtable-2level.h.

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

Definition at line 24 of file pgtable-2level.h.