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

Go to the source code of this file.

Data Structures

struct  pte_t
 
struct  pgprot_t
 
struct  pgd_t
 

Macros

#define PAGE_SIZE   (_AC(1, UL) << PAGE_SHIFT)
 
#define PAGE_MASK   (~(PAGE_SIZE-1))
 
#define PTE_MASK   PAGE_MASK
 
#define clear_page(page)   memset((void *)(page), 0, PAGE_SIZE)
 
#define __HAVE_ARCH_COPY_USER_HIGHPAGE
 
#define clear_user_highpage   clear_user_highpage
 
#define pte_val(x)   ((x).pte_low)
 
#define __pte(x)   ((pte_t) { (x) } )
 
#define pgd_val(x)   ((x).pgd)
 
#define pgprot_val(x)   ((x).pgprot)
 
#define __pgd(x)   ((pgd_t) { (x) } )
 
#define __pgprot(x)   ((pgprot_t) { (x) } )
 
#define pte_pgprot(x)   __pgprot(pte_val(x) & PTE_FLAGS_MASK)
 
#define __MEMORY_START   CONFIG_MEMORY_START
 
#define __MEMORY_SIZE   CONFIG_MEMORY_SIZE
 
#define PHYSICAL_OFFSET   0
 
#define PAGE_OFFSET   CONFIG_PAGE_OFFSET
 
#define ___pa(x)   ((x)-PAGE_OFFSET)
 
#define ___va(x)   ((x)+PAGE_OFFSET)
 
#define __pa(x)   ___pa((unsigned long)x)
 
#define __va(x)   (void *)___va((unsigned long)x)
 
#define UNCAC_ADDR(addr)   ((addr))
 
#define CAC_ADDR(addr)   ((addr))
 
#define pfn_to_kaddr(pfn)   __va((pfn) << PAGE_SHIFT)
 
#define page_to_phys(page)   (page_to_pfn(page) << PAGE_SHIFT)
 
#define PFN_START   (__MEMORY_START >> PAGE_SHIFT)
 
#define ARCH_PFN_OFFSET   (PFN_START)
 
#define virt_to_page(kaddr)   pfn_to_page(__pa(kaddr) >> PAGE_SHIFT)
 
#define virt_addr_valid(kaddr)   pfn_valid(__pa(kaddr) >> PAGE_SHIFT)
 
#define VM_DATA_DEFAULT_FLAGS
 
#define ARCH_DMA_MINALIGN   L1_CACHE_BYTES
 

Typedefs

typedef struct pagepgtable_t
 

Functions

void copy_page (void *to, void *from)
 
void copy_user_highpage (struct page *to, struct page *from, unsigned long vaddr, struct vm_area_struct *vma)
 
void clear_user_highpage (struct page *page, unsigned long vaddr)
 

Variables

unsigned long shm_align_mask
 
unsigned long max_low_pfn
 
unsigned long min_low_pfn
 
unsigned long memory_start
 
unsigned long memory_end
 
unsigned long memory_limit
 

Macro Definition Documentation

#define ___pa (   x)    ((x)-PAGE_OFFSET)

Definition at line 144 of file page.h.

#define ___va (   x)    ((x)+PAGE_OFFSET)

Definition at line 145 of file page.h.

#define __HAVE_ARCH_COPY_USER_HIGHPAGE

Definition at line 68 of file page.h.

#define __MEMORY_SIZE   CONFIG_MEMORY_SIZE

Definition at line 113 of file page.h.

#define __MEMORY_START   CONFIG_MEMORY_START

Definition at line 112 of file page.h.

#define __pa (   x)    ___pa((unsigned long)x)

Definition at line 149 of file page.h.

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

Definition at line 100 of file page.h.

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

Definition at line 101 of file page.h.

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

Definition at line 94 of file page.h.

#define __va (   x)    (void *)___va((unsigned long)x)

Definition at line 150 of file page.h.

#define ARCH_DMA_MINALIGN   L1_CACHE_BYTES

Definition at line 198 of file page.h.

#define ARCH_PFN_OFFSET   (PFN_START)

Definition at line 176 of file page.h.

#define CAC_ADDR (   addr)    ((addr))

Definition at line 163 of file page.h.

#define clear_page (   page)    memset((void *)(page), 0, PAGE_SIZE)

Definition at line 60 of file page.h.

#define clear_user_highpage   clear_user_highpage

Definition at line 70 of file page.h.

#define PAGE_MASK   (~(PAGE_SIZE-1))

Definition at line 24 of file page.h.

#define PAGE_OFFSET   CONFIG_PAGE_OFFSET

Definition at line 129 of file page.h.

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

Definition at line 23 of file page.h.

#define page_to_phys (   page)    (page_to_pfn(page) << PAGE_SHIFT)

Definition at line 167 of file page.h.

#define PFN_START   (__MEMORY_START >> PAGE_SHIFT)

Definition at line 175 of file page.h.

#define pfn_to_kaddr (   pfn)    __va((pfn) << PAGE_SHIFT)

Definition at line 166 of file page.h.

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

Definition at line 97 of file page.h.

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

Definition at line 98 of file page.h.

#define PHYSICAL_OFFSET   0

Definition at line 122 of file page.h.

#define PTE_MASK   PAGE_MASK

Definition at line 25 of file page.h.

#define pte_pgprot (   x)    __pgprot(pte_val(x) & PTE_FLAGS_MASK)

Definition at line 105 of file page.h.

#define pte_val (   x)    ((x).pte_low)

Definition at line 93 of file page.h.

#define UNCAC_ADDR (   addr)    ((addr))

Definition at line 162 of file page.h.

#define virt_addr_valid (   kaddr)    pfn_valid(__pa(kaddr) >> PAGE_SHIFT)

Definition at line 181 of file page.h.

#define virt_to_page (   kaddr)    pfn_to_page(__pa(kaddr) >> PAGE_SHIFT)

Definition at line 177 of file page.h.

#define VM_DATA_DEFAULT_FLAGS
Value:
(VM_READ | VM_WRITE | VM_EXEC | \
VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC)

Definition at line 183 of file page.h.

Typedef Documentation

typedef struct page* pgtable_t

Definition at line 103 of file page.h.

Function Documentation

void clear_user_highpage ( struct page page,
unsigned long  vaddr 
)

Definition at line 121 of file cache.c.

void copy_page ( void to,
void from 
)

Definition at line 22 of file nommu.c.

void copy_user_highpage ( struct page to,
struct page from,
unsigned long  vaddr,
struct vm_area_struct vma 
)

Definition at line 205 of file init.c.

Variable Documentation

unsigned long max_low_pfn

Definition at line 33 of file bootmem.c.

unsigned long memory_end

Definition at line 42 of file setup.c.

unsigned long memory_limit

Definition at line 65 of file mem.c.

unsigned long memory_start

Definition at line 42 of file setup.c.

unsigned long min_low_pfn

Definition at line 34 of file bootmem.c.

unsigned long shm_align_mask

Definition at line 18 of file mmap.c.