Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
pgtable.h File Reference
#include <asm-generic/4level-fixup.h>
#include <linux/slab.h>
#include <asm/processor.h>
#include <asm/page.h>
#include <asm/io.h>
#include <asm-generic/pgtable.h>

Go to the source code of this file.

Macros

#define pgd_present(pgd)   (1) /* pages are always present on NO_MM */
 
#define pgd_none(pgd)   (0)
 
#define pgd_bad(pgd)   (0)
 
#define pgd_clear(pgdp)
 
#define kern_addr_valid(addr)   (1)
 
#define pmd_offset(a, b)   ((void *)0)
 
#define pmd_none(pmd)   (1)
 
#define pgd_offset_k(adrdress)   ((pgd_t *)0)
 
#define pte_offset_kernel(dir, address)   ((pte_t *)0)
 
#define PAGE_NONE   __pgprot(0) /* these mean nothing to NO_MM */
 
#define PAGE_SHARED   __pgprot(0) /* these mean nothing to NO_MM */
 
#define PAGE_COPY   __pgprot(0) /* these mean nothing to NO_MM */
 
#define PAGE_READONLY   __pgprot(0) /* these mean nothing to NO_MM */
 
#define PAGE_KERNEL   __pgprot(0) /* these mean nothing to NO_MM */
 
#define swapper_pg_dir   ((pgd_t *) 0)
 
#define __swp_type(x)   (0)
 
#define __swp_offset(x)   (0)
 
#define __swp_entry(typ, off)   ((swp_entry_t) { ((typ) | ((off) << 7)) })
 
#define __pte_to_swp_entry(pte)   ((swp_entry_t) { pte_val(pte) })
 
#define __swp_entry_to_pte(x)   ((pte_t) { (x).val })
 
#define ZERO_PAGE(vaddr)   (virt_to_page(0))
 
#define pgtable_cache_init()   do { } while (0)
 
#define io_remap_pfn_range(vma, vaddr, pfn, size, prot)   remap_pfn_range(vma, vaddr, pfn, size, prot)
 
#define VMALLOC_START   0
 
#define VMALLOC_END   0xffffffff
 
#define VMALLOC_START   0
 
#define VMALLOC_END   0xffffffff
 
#define arch_enter_lazy_cpu_mode()   do {} while (0)
 

Functions

void paging_init (void)
 
unsigned int kobjsize (const void *objp)
 
int is_in_rom (unsigned long)
 

Macro Definition Documentation

#define __pte_to_swp_entry (   pte)    ((swp_entry_t) { pte_val(pte) })

Definition at line 33 of file pgtable.h.

#define __swp_entry (   typ,
  off 
)    ((swp_entry_t) { ((typ) | ((off) << 7)) })

Definition at line 32 of file pgtable.h.

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

Definition at line 34 of file pgtable.h.

#define __swp_offset (   x)    (0)

Definition at line 31 of file pgtable.h.

#define __swp_type (   x)    (0)

Definition at line 30 of file pgtable.h.

#define arch_enter_lazy_cpu_mode ( )    do {} while (0)

Definition at line 72 of file pgtable.h.

#define io_remap_pfn_range (   vma,
  vaddr,
  pfn,
  size,
  prot 
)    remap_pfn_range(vma, vaddr, pfn, size, prot)

Definition at line 55 of file pgtable.h.

#define kern_addr_valid (   addr)    (1)

Definition at line 15 of file pgtable.h.

#define PAGE_COPY   __pgprot(0) /* these mean nothing to NO_MM */

Definition at line 23 of file pgtable.h.

#define PAGE_KERNEL   __pgprot(0) /* these mean nothing to NO_MM */

Definition at line 25 of file pgtable.h.

#define PAGE_NONE   __pgprot(0) /* these mean nothing to NO_MM */

Definition at line 21 of file pgtable.h.

#define PAGE_READONLY   __pgprot(0) /* these mean nothing to NO_MM */

Definition at line 24 of file pgtable.h.

#define PAGE_SHARED   __pgprot(0) /* these mean nothing to NO_MM */

Definition at line 22 of file pgtable.h.

#define pgd_bad (   pgd)    (0)

Definition at line 13 of file pgtable.h.

#define pgd_clear (   pgdp)

Definition at line 14 of file pgtable.h.

#define pgd_none (   pgd)    (0)

Definition at line 12 of file pgtable.h.

#define pgd_offset_k (   adrdress)    ((pgd_t *)0)

Definition at line 18 of file pgtable.h.

#define pgd_present (   pgd)    (1) /* pages are always present on NO_MM */

Definition at line 11 of file pgtable.h.

#define pgtable_cache_init (   void)    do { } while (0)

Definition at line 53 of file pgtable.h.

#define pmd_none (   pmd)    (1)

Definition at line 17 of file pgtable.h.

#define pmd_offset (   a,
  b 
)    ((void *)0)

Definition at line 16 of file pgtable.h.

#define pte_offset_kernel (   dir,
  address 
)    ((pte_t *)0)

Definition at line 19 of file pgtable.h.

#define swapper_pg_dir   ((pgd_t *) 0)

Definition at line 28 of file pgtable.h.

#define VMALLOC_END   0xffffffff

Definition at line 70 of file pgtable.h.

#define VMALLOC_END   0xffffffff

Definition at line 70 of file pgtable.h.

#define VMALLOC_START   0

Definition at line 69 of file pgtable.h.

#define VMALLOC_START   0

Definition at line 69 of file pgtable.h.

#define ZERO_PAGE (   vaddr)    (virt_to_page(0))

Definition at line 42 of file pgtable.h.

Function Documentation

int is_in_rom ( unsigned  long)
unsigned int kobjsize ( const void objp)

Definition at line 86 of file nommu.c.

void paging_init ( void  )

paging_init - setup page tables

paging_init() sets up the page tables for each node of the system and frees the bootmem allocator memory for general use.

Definition at line 238 of file init.c.