Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
pgtable-3level.h File Reference

Go to the source code of this file.

Macros

#define pte_ERROR(e)
 
#define pmd_ERROR(e)
 
#define pgd_ERROR(e)
 
#define pmd_read_atomic   pmd_read_atomic
 
#define native_ptep_get_and_clear(xp)   native_local_ptep_get_and_clear(xp)
 
#define native_pmdp_get_and_clear(xp)   native_local_pmdp_get_and_clear(xp)
 
#define pte_to_pgoff(pte)   ((pte).pte_high)
 
#define pgoff_to_pte(off)   ((pte_t) { { .pte_low = _PAGE_FILE, .pte_high = (off) } })
 
#define PTE_FILE_MAX_BITS   32
 
#define MAX_SWAPFILES_CHECK()   BUILD_BUG_ON(MAX_SWAPFILES_SHIFT > 5)
 
#define __swp_type(x)   (((x).val) & 0x1f)
 
#define __swp_offset(x)   ((x).val >> 5)
 
#define __swp_entry(type, offset)   ((swp_entry_t){(type) | (offset) << 5})
 
#define __pte_to_swp_entry(pte)   ((swp_entry_t){ (pte).pte_high })
 
#define __swp_entry_to_pte(x)   ((pte_t){ { .pte_high = (x).val } })
 

Macro Definition Documentation

#define __pte_to_swp_entry (   pte)    ((swp_entry_t){ (pte).pte_high })

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

#define __swp_entry (   type,
  offset 
)    ((swp_entry_t){(type) | (offset) << 5})

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

#define __swp_entry_to_pte (   x)    ((pte_t){ { .pte_high = (x).val } })

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

#define __swp_offset (   x)    ((x).val >> 5)

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

#define __swp_type (   x)    (((x).val) & 0x1f)

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

#define MAX_SWAPFILES_CHECK ( )    BUILD_BUG_ON(MAX_SWAPFILES_SHIFT > 5)

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

#define native_pmdp_get_and_clear (   xp)    native_local_pmdp_get_and_clear(xp)

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

#define native_ptep_get_and_clear (   xp)    native_local_ptep_get_and_clear(xp)

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

#define pgd_ERROR (   e)
Value:
pr_err("%s:%d: bad pgd %p(%016Lx)\n", \
__FILE__, __LINE__, &(e), pgd_val(e))

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

#define pgoff_to_pte (   off)    ((pte_t) { { .pte_low = _PAGE_FILE, .pte_high = (off) } })

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

#define pmd_ERROR (   e)
Value:
pr_err("%s:%d: bad pmd %p(%016Lx)\n", \
__FILE__, __LINE__, &(e), pmd_val(e))

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

#define pmd_read_atomic   pmd_read_atomic

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

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

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

#define PTE_FILE_MAX_BITS   32

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

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

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