Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Variables
page.h File Reference
#include <linux/const.h>
#include <asm/setup.h>
#include <asm/page_offset.h>
#include <asm/page_no.h>
#include <asm-generic/getorder.h>

Go to the source code of this file.

Data Structures

struct  pte_t
 
struct  pmd_t
 
struct  pgd_t
 
struct  pgprot_t
 

Macros

#define PAGE_SHIFT   12
 
#define PAGE_SIZE   (_AC(1, UL) << PAGE_SHIFT)
 
#define PAGE_MASK   (~(PAGE_SIZE-1))
 
#define PAGE_OFFSET   (PAGE_OFFSET_RAW)
 
#define pte_val(x)   ((x).pte)
 
#define pmd_val(x)   ((&x)->pmd[0])
 
#define pgd_val(x)   ((x).pgd)
 
#define pgprot_val(x)   ((x).pgprot)
 
#define __pte(x)   ((pte_t) { (x) } )
 
#define __pmd(x)   ((pmd_t) { (x) } )
 
#define __pgd(x)   ((pgd_t) { (x) } )
 
#define __pgprot(x)   ((pgprot_t) { (x) } )
 

Typedefs

typedef struct pagepgtable_t
 

Variables

unsigned long _rambase
 
unsigned long _ramstart
 
unsigned long _ramend
 

Macro Definition Documentation

#define __pgd (   x)    ((pgd_t) { (x) } )

Definition at line 36 of file page.h.

#define __pgprot (   x)    ((pgprot_t) { (x) } )

Definition at line 37 of file page.h.

#define __pmd (   x)    ((pmd_t) { (x) } )

Definition at line 35 of file page.h.

#define __pte (   x)    ((pte_t) { (x) } )

Definition at line 34 of file page.h.

#define PAGE_MASK   (~(PAGE_SIZE-1))

Definition at line 15 of file page.h.

#define PAGE_OFFSET   (PAGE_OFFSET_RAW)

Definition at line 16 of file page.h.

#define PAGE_SHIFT   12

Definition at line 12 of file page.h.

#define PAGE_SIZE   (_AC(1, UL) << PAGE_SHIFT)

Definition at line 14 of file page.h.

#define pgd_val (   x)    ((x).pgd)

Definition at line 31 of file page.h.

#define pgprot_val (   x)    ((x).pgprot)

Definition at line 32 of file page.h.

#define pmd_val (   x)    ((&x)->pmd[0])

Definition at line 30 of file page.h.

#define pte_val (   x)    ((x).pte)

Definition at line 29 of file page.h.

Typedef Documentation

typedef struct page* pgtable_t

Definition at line 27 of file page.h.

Variable Documentation

unsigned long _rambase

Definition at line 43 of file setup.c.

unsigned long _ramend

Definition at line 43 of file setup.c.

unsigned long _ramstart

Definition at line 43 of file setup.c.