Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
page_types.h File Reference
#include <linux/const.h>
#include <linux/types.h>
#include <asm/page_32_types.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 __PHYSICAL_MASK   ((phys_addr_t)((1ULL << __PHYSICAL_MASK_SHIFT) - 1))
 
#define __VIRTUAL_MASK   ((1UL << __VIRTUAL_MASK_SHIFT) - 1)
 
#define PHYSICAL_PAGE_MASK   (((signed long)PAGE_MASK) & __PHYSICAL_MASK)
 
#define PMD_PAGE_SIZE   (_AC(1, UL) << PMD_SHIFT)
 
#define PMD_PAGE_MASK   (~(PMD_PAGE_SIZE-1))
 
#define HPAGE_SHIFT   PMD_SHIFT
 
#define HPAGE_SIZE   (_AC(1,UL) << HPAGE_SHIFT)
 
#define HPAGE_MASK   (~(HPAGE_SIZE - 1))
 
#define HUGETLB_PAGE_ORDER   (HPAGE_SHIFT - PAGE_SHIFT)
 
#define HUGE_MAX_HSTATE   2
 
#define PAGE_OFFSET   ((unsigned long)__PAGE_OFFSET)
 
#define VM_DATA_DEFAULT_FLAGS
 

Functions

int devmem_is_allowed (unsigned long pagenr)
 
unsigned long init_memory_mapping (unsigned long start, unsigned long end)
 
void initmem_init (void)
 

Variables

unsigned long max_low_pfn_mapped
 
unsigned long max_pfn_mapped
 

Macro Definition Documentation

#define __PHYSICAL_MASK   ((phys_addr_t)((1ULL << __PHYSICAL_MASK_SHIFT) - 1))

Definition at line 12 of file page_types.h.

#define __VIRTUAL_MASK   ((1UL << __VIRTUAL_MASK_SHIFT) - 1)

Definition at line 13 of file page_types.h.

#define HPAGE_MASK   (~(HPAGE_SIZE - 1))

Definition at line 25 of file page_types.h.

#define HPAGE_SHIFT   PMD_SHIFT

Definition at line 23 of file page_types.h.

#define HPAGE_SIZE   (_AC(1,UL) << HPAGE_SHIFT)

Definition at line 24 of file page_types.h.

#define HUGE_MAX_HSTATE   2

Definition at line 28 of file page_types.h.

#define HUGETLB_PAGE_ORDER   (HPAGE_SHIFT - PAGE_SHIFT)

Definition at line 26 of file page_types.h.

#define PAGE_MASK   (~(PAGE_SIZE-1))

Definition at line 10 of file page_types.h.

#define PAGE_OFFSET   ((unsigned long)__PAGE_OFFSET)

Definition at line 30 of file page_types.h.

#define PAGE_SHIFT   12

Definition at line 8 of file page_types.h.

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

Definition at line 9 of file page_types.h.

#define PHYSICAL_PAGE_MASK   (((signed long)PAGE_MASK) & __PHYSICAL_MASK)

Definition at line 18 of file page_types.h.

#define PMD_PAGE_MASK   (~(PMD_PAGE_SIZE-1))

Definition at line 21 of file page_types.h.

#define PMD_PAGE_SIZE   (_AC(1, UL) << PMD_SHIFT)

Definition at line 20 of file page_types.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 32 of file page_types.h.

Function Documentation

int devmem_is_allowed ( unsigned long  pagenr)

Definition at line 663 of file init.c.

unsigned long init_memory_mapping ( unsigned long  start,
unsigned long  end 
)

Definition at line 129 of file init.c.

void initmem_init ( void  )

Definition at line 637 of file init_32.c.

Variable Documentation

unsigned long max_low_pfn_mapped

Definition at line 123 of file setup.c.

unsigned long max_pfn_mapped

Definition at line 124 of file setup.c.