Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Typedefs | Functions
pgtable.h File Reference
#include <asm/mem-layout.h>
#include <asm/setup.h>
#include <asm/processor.h>
#include <linux/threads.h>
#include <linux/slab.h>
#include <linux/list.h>
#include <linux/spinlock.h>
#include <linux/sched.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 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 __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)   ({ BUG(); NULL; })
 
#define swapper_pg_dir   ((pgd_t *) NULL)
 
#define pgtable_cache_init()   do {} while (0)
 

Typedefs

typedef pte_tpte_addr_t
 

Functions

void __init paging_init (void)
 

Macro Definition Documentation

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

Definition at line 62 of file pgtable.h.

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

Definition at line 61 of file pgtable.h.

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

Definition at line 63 of file pgtable.h.

#define __swp_offset (   x)    (0)

Definition at line 60 of file pgtable.h.

#define __swp_type (   x)    (0)

Definition at line 59 of file pgtable.h.

#define kern_addr_valid (   addr)    (1)

Definition at line 50 of file pgtable.h.

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

Definition at line 55 of file pgtable.h.

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

Definition at line 57 of file pgtable.h.

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

Definition at line 53 of file pgtable.h.

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

Definition at line 56 of file pgtable.h.

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

Definition at line 54 of file pgtable.h.

#define pgd_bad (   pgd)    (0)

Definition at line 48 of file pgtable.h.

#define pgd_clear (   pgdp)

Definition at line 49 of file pgtable.h.

#define pgd_none (   pgd)    (0)

Definition at line 47 of file pgtable.h.

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

Definition at line 46 of file pgtable.h.

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

Definition at line 73 of file pgtable.h.

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

Definition at line 51 of file pgtable.h.

#define swapper_pg_dir   ((pgd_t *) NULL)

Definition at line 71 of file pgtable.h.

#define ZERO_PAGE (   vaddr)    ({ BUG(); NULL; })

Definition at line 69 of file pgtable.h.

Typedef Documentation

typedef pte_t* pte_addr_t

Definition at line 29 of file pgtable.h.

Function Documentation

void __init 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.