Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
init.c File Reference
#include <linux/bug.h>
#include <linux/init.h>
#include <linux/module.h>
#include <linux/signal.h>
#include <linux/sched.h>
#include <linux/smp.h>
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/string.h>
#include <linux/types.h>
#include <linux/pagemap.h>
#include <linux/ptrace.h>
#include <linux/mman.h>
#include <linux/mm.h>
#include <linux/bootmem.h>
#include <linux/highmem.h>
#include <linux/swap.h>
#include <linux/proc_fs.h>
#include <linux/pfn.h>
#include <linux/hardirq.h>
#include <linux/gfp.h>
#include <asm/asm-offsets.h>
#include <asm/bootinfo.h>
#include <asm/cachectl.h>
#include <asm/cpu.h>
#include <asm/dma.h>
#include <asm/kmap_types.h>
#include <asm/mmu_context.h>
#include <asm/sections.h>
#include <asm/pgtable.h>
#include <asm/pgalloc.h>
#include <asm/tlb.h>
#include <asm/fixmap.h>

Go to the source code of this file.

Macros

#define ENTER_CRITICAL(flags)   local_irq_save(flags)
 
#define EXIT_CRITICAL(flags)   local_irq_restore(flags)
 
#define UNIQUE_ENTRYHI(idx)   (CKSEG0 + ((idx) << (PAGE_SHIFT + 1)))
 

Functions

 EXPORT_SYMBOL_GPL (empty_zero_page)
 
unsigned long setup_zero_pages (void)
 
voidkmap_coherent (struct page *page, unsigned long addr)
 
void kunmap_coherent (void)
 
void copy_user_highpage (struct page *to, struct page *from, unsigned long vaddr, struct vm_area_struct *vma)
 
void copy_to_user_page (struct vm_area_struct *vma, struct page *page, unsigned long vaddr, void *dst, const void *src, unsigned long len)
 
void copy_from_user_page (struct vm_area_struct *vma, struct page *page, unsigned long vaddr, void *dst, const void *src, unsigned long len)
 
void __init fixrange_init (unsigned long start, unsigned long end, pgd_t *pgd_base)
 
int page_is_ram (unsigned long pagenr)
 
void __init paging_init (void)
 
void __init mem_init (void)
 
void free_init_pages (const char *what, unsigned long begin, unsigned long end)
 
void __init_refok free_initmem (void)
 
pgd_t swapper_pg_dir[_PTRS_PER_PGD] __section (.bss..swapper_pg_dir)
 

Variables

unsigned long empty_zero_page
 
unsigned long zero_page_mask
 
unsigned long pgd_current [NR_CPUS]
 
pmd_t invalid_pmd_table[PTRS_PER_PMD__page_aligned_bss
 

Macro Definition Documentation

#define ENTER_CRITICAL (   flags)    local_irq_save(flags)

Definition at line 62 of file init.c.

#define EXIT_CRITICAL (   flags)    local_irq_restore(flags)

Definition at line 63 of file init.c.

#define UNIQUE_ENTRYHI (   idx)    (CKSEG0 + ((idx) << (PAGE_SHIFT + 1)))

Definition at line 179 of file init.c.

Function Documentation

pgd_t swapper_pg_dir [_PTRS_PER_PGD] __section ( .bss..  swapper_pg_dir)
void copy_from_user_page ( struct vm_area_struct vma,
struct page page,
unsigned long  vaddr,
void dst,
const void src,
unsigned long  len 
)

Definition at line 247 of file init.c.

void copy_to_user_page ( struct vm_area_struct vma,
struct page page,
unsigned long  vaddr,
void dst,
const void src,
unsigned long  len 
)

Definition at line 229 of file init.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.

EXPORT_SYMBOL_GPL ( empty_zero_page  )
void __init fixrange_init ( unsigned long  start,
unsigned long  end,
pgd_t pgd_base 
)

Definition at line 263 of file init.c.

void free_init_pages ( const char what,
unsigned long  begin,
unsigned long  end 
)

Definition at line 435 of file init.c.

void __init_refok free_initmem ( void  )

Definition at line 461 of file init.c.

void* kmap_coherent ( struct page page,
unsigned long  addr 
)

Definition at line 122 of file init.c.

void kunmap_coherent ( void  )

Definition at line 181 of file init.c.

void __init mem_init ( void  )

Definition at line 367 of file init.c.

int page_is_ram ( unsigned long  pagenr)

Definition at line 300 of file init.c.

void __init paging_init ( void  )

paging_init - setup page tables

paging_init() sets up the page tables for each node of the system and frees the bootmem allocator memory for general use.

Definition at line 327 of file init.c.

unsigned long setup_zero_pages ( void  )

Definition at line 80 of file init.c.

Variable Documentation

pte_t invalid_pte_table [PTRS_PER_PTE] __page_aligned_bss

Definition at line 486 of file init.c.

unsigned long empty_zero_page

Definition at line 74 of file init.c.

unsigned long pgd_current[NR_CPUS]

Definition at line 470 of file init.c.

unsigned long zero_page_mask

Definition at line 74 of file init.c.