Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Functions
page_64.h File Reference
#include <linux/const.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  iopte_t
 
struct  pmd_t
 
struct  pgd_t
 
struct  pgprot_t
 

Macros

#define PAGE_SHIFT   13
 
#define PAGE_SIZE   (_AC(1,UL) << PAGE_SHIFT)
 
#define PAGE_MASK   (~(PAGE_SIZE-1))
 
#define DCACHE_ALIASING_POSSIBLE
 
#define HPAGE_SHIFT   22
 
#define WANT_PAGE_VIRTUAL
 
#define clear_page(X)   _clear_page((void *)(X))
 
#define copy_page(X, Y)   memcpy((void *)(X), (void *)(Y), PAGE_SIZE)
 
#define STRICT_MM_TYPECHECKS
 
#define pte_val(x)   ((x).pte)
 
#define iopte_val(x)   ((x).iopte)
 
#define pmd_val(x)   ((x).pmd)
 
#define pgd_val(x)   ((x).pgd)
 
#define pgprot_val(x)   ((x).pgprot)
 
#define __pte(x)   ((pte_t) { (x) } )
 
#define __iopte(x)   ((iopte_t) { (x) } )
 
#define __pmd(x)   ((pmd_t) { (x) } )
 
#define __pgd(x)   ((pgd_t) { (x) } )
 
#define __pgprot(x)   ((pgprot_t) { (x) } )
 
#define TASK_UNMAPPED_BASE
 
#define PAGE_OFFSET   _AC(0xFFFFF80000000000,UL)
 
#define __pa(x)   ((unsigned long)(x) - PAGE_OFFSET)
 
#define __va(x)   ((void *)((unsigned long) (x) + PAGE_OFFSET))
 
#define pfn_to_kaddr(pfn)   __va((pfn) << PAGE_SHIFT)
 
#define virt_to_page(kaddr)   pfn_to_page(__pa(kaddr)>>PAGE_SHIFT)
 
#define virt_addr_valid(kaddr)   pfn_valid(__pa(kaddr) >> PAGE_SHIFT)
 
#define virt_to_phys   __pa
 
#define phys_to_virt   __va
 
#define VM_DATA_DEFAULT_FLAGS
 

Typedefs

typedef pte_tpgtable_t
 

Functions

void _clear_page (void *page)
 
void clear_user_page (void *addr, unsigned long vaddr, struct page *page)
 
void copy_user_page (void *to, void *from, unsigned long vaddr, struct page *topage)
 

Macro Definition Documentation

#define __iopte (   x)    ((iopte_t) { (x) } )

Definition at line 67 of file page_64.h.

#define __pa (   x)    ((unsigned long)(x) - PAGE_OFFSET)

Definition at line 111 of file page_64.h.

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

Definition at line 69 of file page_64.h.

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

Definition at line 70 of file page_64.h.

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

Definition at line 68 of file page_64.h.

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

Definition at line 66 of file page_64.h.

#define __va (   x)    ((void *)((unsigned long) (x) + PAGE_OFFSET))

Definition at line 112 of file page_64.h.

#define clear_page (   X)    _clear_page((void *)(X))

Definition at line 37 of file page_64.h.

#define copy_page (   X,
 
)    memcpy((void *)(X), (void *)(Y), PAGE_SIZE)

Definition at line 40 of file page_64.h.

#define DCACHE_ALIASING_POSSIBLE

Definition at line 15 of file page_64.h.

#define HPAGE_SHIFT   22

Definition at line 18 of file page_64.h.

#define iopte_val (   x)    ((x).iopte)

Definition at line 61 of file page_64.h.

#define PAGE_MASK   (~(PAGE_SIZE-1))

Definition at line 9 of file page_64.h.

#define PAGE_OFFSET   _AC(0xFFFFF80000000000,UL)

Definition at line 107 of file page_64.h.

#define PAGE_SHIFT   13

Definition at line 6 of file page_64.h.

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

Definition at line 8 of file page_64.h.

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

Definition at line 114 of file page_64.h.

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

Definition at line 63 of file page_64.h.

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

Definition at line 64 of file page_64.h.

#define phys_to_virt   __va

Definition at line 121 of file page_64.h.

#define pmd_val (   x)    ((x).pmd)

Definition at line 62 of file page_64.h.

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

Definition at line 60 of file page_64.h.

#define STRICT_MM_TYPECHECKS

Definition at line 50 of file page_64.h.

#define TASK_UNMAPPED_BASE
Value:
(test_thread_flag(TIF_32BIT) ? \
(_AC(0x0000000070000000,UL)) : \
(_AC(0xfffff80000000000,UL) + (1UL << 32UL)))

Definition at line 96 of file page_64.h.

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

Definition at line 118 of file page_64.h.

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

Definition at line 116 of file page_64.h.

#define virt_to_phys   __pa

Definition at line 120 of file page_64.h.

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

Definition at line 125 of file page_64.h.

#define WANT_PAGE_VIRTUAL

Definition at line 34 of file page_64.h.

Typedef Documentation

typedef pte_t* pgtable_t

Definition at line 94 of file page_64.h.

Function Documentation

void _clear_page ( void page)
void clear_user_page ( void addr,
unsigned long  vaddr,
struct page page 
)

Definition at line 379 of file cache.c.

void copy_user_page ( void to,
void from,
unsigned long  vaddr,
struct page topage 
)

Definition at line 402 of file cache.c.