Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Typedefs | Functions
page.h File Reference
#include <asm/pgtable-3level-types.h>
#include <asm/memory.h>
#include <asm-generic/getorder.h>

Go to the source code of this file.

Macros

#define PAGE_SHIFT   12
 
#define PAGE_SIZE   (_AC(1,UL) << PAGE_SHIFT)
 
#define PAGE_MASK   (~(PAGE_SIZE-1))
 
#define __HAVE_ARCH_GATE_AREA   1
 
#define clear_user_page(addr, vaddr, pg)   __cpu_clear_user_page(addr, vaddr)
 
#define copy_user_page(to, from, vaddr, pg)   __cpu_copy_user_page(to, from, vaddr)
 
#define VM_DATA_DEFAULT_FLAGS
 

Typedefs

typedef struct pagepgtable_t
 

Functions

void __cpu_clear_user_page (void *p, unsigned long user)
 
void __cpu_copy_user_page (void *to, const void *from, unsigned long user)
 
void copy_page (void *to, const void *from)
 
void clear_page (void *to)
 

Macro Definition Documentation

#define __HAVE_ARCH_GATE_AREA   1

Definition at line 32 of file page.h.

#define clear_user_page (   addr,
  vaddr,
  pg 
)    __cpu_clear_user_page(addr, vaddr)

Definition at line 48 of file page.h.

#define copy_user_page (   to,
  from,
  vaddr,
  pg 
)    __cpu_copy_user_page(to, from, vaddr)

Definition at line 49 of file page.h.

#define PAGE_MASK   (~(PAGE_SIZE-1))

Definition at line 29 of file page.h.

#define PAGE_SHIFT   12

Definition at line 26 of file page.h.

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

Definition at line 28 of file page.h.

#define VM_DATA_DEFAULT_FLAGS
Value:
(((current->personality & READ_IMPLIES_EXEC) ? VM_EXEC : 0) | \
VM_READ | VM_WRITE | VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC)

Definition at line 61 of file page.h.

Typedef Documentation

typedef struct page* pgtable_t

Definition at line 51 of file page.h.

Function Documentation

void __cpu_clear_user_page ( void p,
unsigned long  user 
)

Definition at line 31 of file copypage.c.

void __cpu_copy_user_page ( void to,
const void from,
unsigned long  user 
)

Definition at line 25 of file copypage.c.

void clear_page ( void to)
void copy_page ( void to,
const void from 
)