Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
physmem.c File Reference
#include <linux/module.h>
#include <linux/bootmem.h>
#include <linux/mm.h>
#include <linux/pfn.h>
#include <asm/page.h>
#include <as-layout.h>
#include <init.h>
#include <kern.h>
#include <mem_user.h>
#include <os.h>

Go to the source code of this file.

Functions

 EXPORT_SYMBOL (high_physmem)
 
int __init init_maps (unsigned long physmem, unsigned long iomem, unsigned long highmem)
 
void map_memory (unsigned long virt, unsigned long phys, unsigned long len, int r, int w, int x)
 
void __init setup_physmem (unsigned long start, unsigned long reserve_end, unsigned long len, unsigned long long highmem)
 
int phys_mapping (unsigned long phys, unsigned long long *offset_out)
 
 __uml_setup ("mem=", uml_mem_setup,"mem=<Amount of desired ram>\n"" This controls how much \"physical\" memory the kernel allocates\n"" for the system. The size is specified as a number followed by\n"" one of 'k', 'K', 'm', 'M', which have the obvious meanings.\n"" This is not related to the amount of memory in the host. It can\n"" be more, and the excess, if it's ever used, will just be swapped out.\n"" Example: mem=64M\n\n")
 
int __init parse_iomem (char *str, int *add)
 
 __uml_setup ("iomem=", parse_iomem,"iomem=<name>,<file>\n"" Configure <file> as an IO memory region named <name>.\n\n")
 
unsigned long find_iomem (char *driver, unsigned long *len_out)
 
 EXPORT_SYMBOL (find_iomem)
 
 __initcall (setup_iomem)
 

Variables

unsigned long high_physmem
 
unsigned long long physmem_size
 
int __syscall_stub_start
 
struct iomem_regioniomem_regions
 
int iomem_size
 

Function Documentation

__initcall ( setup_iomem  )
__uml_setup ( mem = ", uml_mem_setup,"mem=<Amount of desired ram>\n""    This controls how much \"physical\" memory the kernel allocates\n""    for the system. The size is specified as a number followed by\n""    one of 'k', 'K', 'm', 'M', which have the obvious meanings.\n""    This is not related to the amount of memory in the host.  It can\n""    be more, and the excess, if it's ever used, will just be swapped out.\n"" Example: mem=64M\n\n")
__uml_setup ( iomem = ", parse_iomem,"iomem=<name>,
< file >\n""Configure< file > as an IO memory region named< name >.\n\n  
)
EXPORT_SYMBOL ( high_physmem  )
EXPORT_SYMBOL ( find_iomem  )
unsigned long find_iomem ( char driver,
unsigned long len_out 
)

Definition at line 174 of file physmem.c.

int __init init_maps ( unsigned long  physmem,
unsigned long  iomem,
unsigned long  highmem 
)

Definition at line 25 of file physmem.c.

void map_memory ( unsigned long  virt,
unsigned long  phys,
unsigned long  len,
int  r,
int  w,
int  x 
)

Definition at line 60 of file physmem.c.

int __init parse_iomem ( char str,
int add 
)

Definition at line 492 of file start_up.c.

int phys_mapping ( unsigned long  phys,
unsigned long long offset_out 
)

Definition at line 112 of file physmem.c.

void __init setup_physmem ( unsigned long  start,
unsigned long  reserve_end,
unsigned long  len,
unsigned long long  highmem 
)

Definition at line 80 of file physmem.c.

Variable Documentation

int __syscall_stub_start
unsigned long high_physmem

Definition at line 20 of file physmem.c.

struct iomem_region* iomem_regions

Definition at line 169 of file physmem.c.

int iomem_size

Definition at line 172 of file physmem.c.

unsigned long long physmem_size

Definition at line 123 of file um_arch.c.