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 <spaces.h>
#include <linux/const.h>
#include <linux/pfn.h>
#include <asm/io.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  pgd_t
 
struct  pgprot_t
 

Macros

#define PAGE_SIZE   (_AC(1,UL) << PAGE_SHIFT)
 
#define PAGE_MASK   (~((1 << PAGE_SHIFT) - 1))
 
#define HPAGE_SHIFT   ({BUILD_BUG(); 0; })
 
#define HPAGE_SIZE   ({BUILD_BUG(); 0; })
 
#define HPAGE_MASK   ({BUILD_BUG(); 0; })
 
#define HUGETLB_PAGE_ORDER   ({BUILD_BUG(); 0; })
 
#define ARCH_PFN_OFFSET   PFN_UP(PHYS_OFFSET)
 
#define __HAVE_ARCH_COPY_USER_HIGHPAGE
 
#define pte_val(x)   ((x).pte)
 
#define __pte(x)   ((pte_t) { (x) } )
 
#define pgd_val(x)   ((x).pgd)
 
#define __pgd(x)   ((pgd_t) { (x) } )
 
#define pgprot_val(x)   ((x).pgprot)
 
#define __pgprot(x)   ((pgprot_t) { (x) } )
 
#define ptep_buddy(x)   ((pte_t *)((unsigned long)(x) ^ sizeof(pte_t)))
 
#define __pa(x)   ((unsigned long)(x) - PAGE_OFFSET + PHYS_OFFSET)
 
#define __va(x)   ((void *)((unsigned long)(x) + PAGE_OFFSET - PHYS_OFFSET))
 
#define __pa_symbol(x)   __pa(RELOC_HIDE((unsigned long)(x), 0))
 
#define pfn_to_kaddr(pfn)   __va((pfn) << PAGE_SHIFT)
 
#define virt_to_page(kaddr)   pfn_to_page(PFN_DOWN(virt_to_phys(kaddr)))
 
#define virt_addr_valid(kaddr)   pfn_valid(PFN_DOWN(virt_to_phys(kaddr)))
 
#define VM_DATA_DEFAULT_FLAGS
 
#define UNCAC_ADDR(addr)
 
#define CAC_ADDR(addr)
 

Typedefs

typedef struct pagepgtable_t
 

Functions

void build_clear_page (void)
 
void build_copy_page (void)
 
void clear_page (void *page)
 
void copy_page (void *to, void *from)
 
void copy_user_page (void *vto, void *vfrom, unsigned long vaddr, struct page *to)
 
void copy_user_highpage (struct page *to, struct page *from, unsigned long vaddr, struct vm_area_struct *vma)
 

Variables

unsigned long shm_align_mask
 

Macro Definition Documentation

#define __HAVE_ARCH_COPY_USER_HIGHPAGE

Definition at line 92 of file page.h.

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

Definition at line 154 of file page.h.

#define __pa_symbol (   x)    __pa(RELOC_HIDE((unsigned long)(x), 0))

Definition at line 172 of file page.h.

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

Definition at line 124 of file page.h.

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

Definition at line 131 of file page.h.

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

Definition at line 110 of file page.h.

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

Definition at line 157 of file page.h.

#define ARCH_PFN_OFFSET   PFN_UP(PHYS_OFFSET)

Definition at line 61 of file page.h.

#define CAC_ADDR (   addr)
Value:

Definition at line 212 of file page.h.

#define HPAGE_MASK   ({BUILD_BUG(); 0; })

Definition at line 44 of file page.h.

#define HPAGE_SHIFT   ({BUILD_BUG(); 0; })

Definition at line 42 of file page.h.

#define HPAGE_SIZE   ({BUILD_BUG(); 0; })

Definition at line 43 of file page.h.

#define HUGETLB_PAGE_ORDER   ({BUILD_BUG(); 0; })

Definition at line 45 of file page.h.

#define PAGE_MASK   (~((1 << PAGE_SHIFT) - 1))

Definition at line 34 of file page.h.

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

Definition at line 33 of file page.h.

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

Definition at line 174 of file page.h.

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

Definition at line 123 of file page.h.

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

Definition at line 130 of file page.h.

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

Definition at line 109 of file page.h.

#define ptep_buddy (   x)    ((pte_t *)((unsigned long)(x) ^ sizeof(pte_t)))

Definition at line 140 of file page.h.

#define UNCAC_ADDR (   addr)
Value:

Definition at line 210 of file page.h.

#define virt_addr_valid (   kaddr)    pfn_valid(PFN_DOWN(virt_to_phys(kaddr)))

Definition at line 205 of file page.h.

#define virt_to_page (   kaddr)    pfn_to_page(PFN_DOWN(virt_to_phys(kaddr)))

Definition at line 204 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 207 of file page.h.

Typedef Documentation

typedef struct page* pgtable_t

Definition at line 112 of file page.h.

Function Documentation

void build_clear_page ( void  )

Definition at line 252 of file page.c.

void build_copy_page ( void  )

Definition at line 394 of file page.c.

void clear_page ( void page)
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.

void copy_user_page ( void vto,
void vfrom,
unsigned long  vaddr,
struct page to 
)

Definition at line 402 of file cache.c.

Variable Documentation

unsigned long shm_align_mask

Definition at line 18 of file mmap.c.