Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Variables
page_mm.h File Reference
#include <linux/compiler.h>
#include <asm/module.h>

Go to the source code of this file.

Macros

#define get_user_page(vaddr)   __get_free_page(GFP_KERNEL)
 
#define free_user_page(page, addr)   free_page(addr)
 
#define clear_page(page)   memset((page), 0, PAGE_SIZE)
 
#define copy_page(to, from)   memcpy((to), (from), PAGE_SIZE)
 
#define clear_user_page(addr, vaddr, page)
 
#define copy_user_page(to, from, vaddr, page)
 
#define WANT_PAGE_VIRTUAL
 
#define __pa(vaddr)   ___pa((void *)(long)(vaddr))
 
#define virt_to_pfn(kaddr)   (__pa(kaddr) >> PAGE_SHIFT)
 
#define pfn_to_virt(pfn)   __va((pfn) << PAGE_SHIFT)
 
#define __virt_to_node(addr)   (pg_data_table[(unsigned long)(addr) >> __virt_to_node_shift()])
 
#define virt_to_page(addr)
 
#define page_to_virt(page)
 
#define pfn_to_page(pfn)
 
#define page_to_pfn(_page)
 
#define virt_addr_valid(kaddr)   ((void *)(kaddr) >= (void *)PAGE_OFFSET && (void *)(kaddr) < high_memory)
 
#define pfn_valid(pfn)   virt_addr_valid(pfn_to_virt(pfn))
 
#define VM_DATA_DEFAULT_FLAGS
 

Variables

unsigned long m68k_memoffset
 
int m68k_virt_to_node_shift
 
struct pglist_datapg_data_table []
 

Macro Definition Documentation

#define __pa (   vaddr)    ___pa((void *)(long)(vaddr))

Definition at line 83 of file page_mm.h.

#define __virt_to_node (   addr)    (pg_data_table[(unsigned long)(addr) >> __virt_to_node_shift()])

Definition at line 148 of file page_mm.h.

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

Definition at line 54 of file page_mm.h.

#define clear_user_page (   addr,
  vaddr,
  page 
)
Value:
do { clear_page(addr); \
flush_dcache_page(page); \
} while (0)

Definition at line 58 of file page_mm.h.

#define copy_page (   to,
  from 
)    memcpy((to), (from), PAGE_SIZE)

Definition at line 55 of file page_mm.h.

#define copy_user_page (   to,
  from,
  vaddr,
  page 
)
Value:
do { copy_page(to, from); \
flush_dcache_page(page); \
} while (0)

Definition at line 62 of file page_mm.h.

#define free_user_page (   page,
  addr 
)    free_page(addr)

Definition at line 10 of file page_mm.h.

#define get_user_page (   vaddr)    __get_free_page(GFP_KERNEL)

Definition at line 9 of file page_mm.h.

#define page_to_pfn (   _page)
Value:
({ \
const struct page *__p = (_page); \
pgdat = &pg_data_map[page_to_nid(__p)]; \
((__p) - pgdat->node_mem_map) + pgdat->node_start_pfn; \
})

Definition at line 164 of file page_mm.h.

#define page_to_virt (   page)
Value:
({ \
pfn_to_virt(page_to_pfn(page)); \
})

Definition at line 154 of file page_mm.h.

#define pfn_to_page (   pfn)
Value:
({ \
unsigned long __pfn = (pfn); \
pgdat = __virt_to_node((unsigned long)pfn_to_virt(__pfn)); \
pgdat->node_mem_map + (__pfn - pgdat->node_start_pfn); \
})

Definition at line 158 of file page_mm.h.

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

Definition at line 127 of file page_mm.h.

#define pfn_valid (   pfn)    virt_addr_valid(pfn_to_virt(pfn))

Definition at line 172 of file page_mm.h.

#define virt_addr_valid (   kaddr)    ((void *)(kaddr) >= (void *)PAGE_OFFSET && (void *)(kaddr) < high_memory)

Definition at line 171 of file page_mm.h.

#define virt_to_page (   addr)
Value:
({ \
pfn_to_page(virt_to_pfn(addr)); \
})

Definition at line 151 of file page_mm.h.

#define virt_to_pfn (   kaddr)    (__pa(kaddr) >> PAGE_SHIFT)

Definition at line 126 of file page_mm.h.

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

Definition at line 176 of file page_mm.h.

#define WANT_PAGE_VIRTUAL

Definition at line 71 of file page_mm.h.

Variable Documentation

unsigned long m68k_memoffset

Definition at line 73 of file setup_mm.c.

int m68k_virt_to_node_shift

Definition at line 38 of file init_mm.c.

struct pglist_data* pg_data_table[]

Definition at line 41 of file init_mm.c.