Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
mem.c File Reference
#include <linux/export.h>
#include <linux/sched.h>
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/string.h>
#include <linux/gfp.h>
#include <linux/types.h>
#include <linux/mm.h>
#include <linux/stddef.h>
#include <linux/init.h>
#include <linux/bootmem.h>
#include <linux/highmem.h>
#include <linux/initrd.h>
#include <linux/pagemap.h>
#include <linux/suspend.h>
#include <linux/memblock.h>
#include <linux/hugetlb.h>
#include <linux/slab.h>
#include <asm/pgalloc.h>
#include <asm/prom.h>
#include <asm/io.h>
#include <asm/mmu_context.h>
#include <asm/pgtable.h>
#include <asm/mmu.h>
#include <asm/smp.h>
#include <asm/machdep.h>
#include <asm/btext.h>
#include <asm/tlb.h>
#include <asm/sections.h>
#include <asm/sparsemem.h>
#include <asm/vdso.h>
#include <asm/fixmap.h>
#include <asm/swiotlb.h>
#include <asm/rtas.h>
#include "mmu_decl.h"

Go to the source code of this file.

Macros

#define CPU_FTR_COHERENT_ICACHE   0 /* XXX for now */
 
#define CPU_FTR_NOEXECUTE   0
 

Functions

int page_is_ram (unsigned long pfn)
 
pgprot_t phys_mem_access_prot (struct file *file, unsigned long pfn, unsigned long size, pgprot_t vma_prot)
 
 EXPORT_SYMBOL (phys_mem_access_prot)
 
int walk_system_ram_range (unsigned long start_pfn, unsigned long nr_pages, void *arg, int(*func)(unsigned long, unsigned long, void *))
 
 EXPORT_SYMBOL_GPL (walk_system_ram_range)
 
void __init do_init_bootmem (void)
 
void __init paging_init (void)
 
void __init mem_init (void)
 
void free_initmem (void)
 
void flush_dcache_page (struct page *page)
 
 EXPORT_SYMBOL (flush_dcache_page)
 
void flush_dcache_icache_page (struct page *page)
 
 EXPORT_SYMBOL (flush_dcache_icache_page)
 
void clear_user_page (void *page, unsigned long vaddr, struct page *pg)
 
 EXPORT_SYMBOL (clear_user_page)
 
void copy_user_page (void *vto, void *vfrom, unsigned long vaddr, struct page *pg)
 
void flush_icache_user_range (struct vm_area_struct *vma, struct page *page, unsigned long addr, int len)
 
 EXPORT_SYMBOL (flush_icache_user_range)
 
void update_mmu_cache (struct vm_area_struct *vma, unsigned long address, pte_t *ptep)
 
 subsys_initcall (add_system_ram_resources)
 

Variables

int init_bootmem_done
 
int mem_init_done
 
unsigned long long memory_limit
 

Macro Definition Documentation

#define CPU_FTR_COHERENT_ICACHE   0 /* XXX for now */

Definition at line 59 of file mem.c.

#define CPU_FTR_NOEXECUTE   0

Definition at line 60 of file mem.c.

Function Documentation

void clear_user_page ( void page,
unsigned long  vaddr,
struct page pg 
)

Definition at line 473 of file mem.c.

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

Definition at line 486 of file mem.c.

void __init do_init_bootmem ( void  )

Definition at line 172 of file mem.c.

EXPORT_SYMBOL ( phys_mem_access_prot  )
EXPORT_SYMBOL ( flush_dcache_page  )
EXPORT_SYMBOL ( flush_dcache_icache_page  )
EXPORT_SYMBOL ( clear_user_page  )
EXPORT_SYMBOL ( flush_icache_user_range  )
EXPORT_SYMBOL_GPL ( walk_system_ram_range  )
void flush_dcache_icache_page ( struct page page)

Definition at line 450 of file mem.c.

void flush_dcache_page ( struct page page)

Definition at line 440 of file mem.c.

void flush_icache_user_range ( struct vm_area_struct vma,
struct page page,
unsigned long  addr,
int  len 
)

Definition at line 509 of file mem.c.

void free_initmem ( void  )

Definition at line 397 of file mem.c.

void __init mem_init ( void  )

Definition at line 292 of file mem.c.

int page_is_ram ( unsigned long  pfn)

Definition at line 81 of file mem.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 253 of file mem.c.

pgprot_t phys_mem_access_prot ( struct file file,
unsigned long  pfn,
unsigned long  size,
pgprot_t  vma_prot 
)

Definition at line 96 of file mem.c.

subsys_initcall ( add_system_ram_resources  )
void update_mmu_cache ( struct vm_area_struct vma,
unsigned long  address,
pte_t ptep 
)
inline

Definition at line 528 of file mem.c.

int walk_system_ram_range ( unsigned long  start_pfn,
unsigned long  nr_pages,
void arg,
int(*)(unsigned long, unsigned long, void *)  func 
)

Definition at line 145 of file mem.c.

Variable Documentation

int init_bootmem_done

Definition at line 63 of file mem.c.

int mem_init_done

Definition at line 64 of file mem.c.

unsigned long long memory_limit

Definition at line 65 of file mem.c.