Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
sparse.c File Reference
#include <linux/mm.h>
#include <linux/slab.h>
#include <linux/mmzone.h>
#include <linux/bootmem.h>
#include <linux/highmem.h>
#include <linux/export.h>
#include <linux/spinlock.h>
#include <linux/vmalloc.h>
#include "internal.h"
#include <asm/dma.h>
#include <asm/pgalloc.h>
#include <asm/pgtable.h>

Go to the source code of this file.

Functions

 EXPORT_SYMBOL (mem_section)
 
int __section_nr (struct mem_section *ms)
 
void __meminit mminit_validate_memmodel_limits (unsigned long *start_pfn, unsigned long *end_pfn)
 
void __init memory_present (int nid, unsigned long start, unsigned long end)
 
unsigned long __init node_memmap_size_bytes (int nid, unsigned long start_pfn, unsigned long end_pfn)
 
struct pagesparse_decode_mem_map (unsigned long coded_mem_map, unsigned long pnum)
 
unsigned long usemap_size (void)
 
struct page __initsparse_mem_map_populate (unsigned long pnum, int nid)
 
void __init sparse_mem_maps_populate_node (struct page **map_map, unsigned long pnum_begin, unsigned long pnum_end, unsigned long map_count, int nodeid)
 
void __attribute__ ((weak))
 
void __init sparse_init (void)
 

Variables

struct mem_section mem_section[NR_SECTION_ROOTS][SECTIONS_PER_ROOT] ____cacheline_internodealigned_in_smp
 

Function Documentation

void __attribute__ ( (weak)  )
read

read_persistent_clock - Return time from the persistent clock.

Weak dummy function for arches that do not yet support it. Reads the time from the battery backed persistent clock. Returns a timespec with tv_sec=0 and tv_nsec=0 if unsupported.

XXX - Do be sure to remove it once all arches implement it.

read_boot_clock - Return time of the system start.

Weak dummy function for arches that do not yet support it. Function to read the exact time the system has been started. Returns a timespec with tv_sec=0 and tv_nsec=0 if unsupported.

XXX - Do be sure to remove it once all arches implement it.

__iowrite32_copy - copy data to MMIO space, in 32-bit units : destination, in MMIO space (must be 32-bit aligned) : source (must be 32-bit aligned) : number of 32-bit quantities to copy

Copy data from kernel space to MMIO space, in units of 32 bits at a time. Order of access is not guaranteed, nor is a memory barrier performed afterwards.

__iowrite64_copy - copy data to MMIO space, in 64-bit or 32-bit units : destination, in MMIO space (must be 64-bit aligned) : source (must be 64-bit aligned) : number of 64-bit quantities to copy

Copy data from kernel space to MMIO space, in units of 32 or 64 bits at a time. Order of access is not guaranteed, nor is a memory barrier performed afterwards.

Definition at line 460 of file sparse.c.

int __section_nr ( struct mem_section *  ms)

Definition at line 107 of file sparse.c.

EXPORT_SYMBOL ( mem_section  )
void __init memory_present ( int  nid,
unsigned long  start,
unsigned long  end 
)

Definition at line 169 of file sparse.c.

void __meminit mminit_validate_memmodel_limits ( unsigned long start_pfn,
unsigned long end_pfn 
)

Definition at line 143 of file sparse.c.

unsigned long __init node_memmap_size_bytes ( int  nid,
unsigned long  start_pfn,
unsigned long  end_pfn 
)

Definition at line 193 of file sparse.c.

struct page* sparse_decode_mem_map ( unsigned long  coded_mem_map,
unsigned long  pnum 
)
read

Definition at line 224 of file sparse.c.

void __init sparse_init ( void  )

Definition at line 468 of file sparse.c.

struct page __init* sparse_mem_map_populate ( unsigned long  pnum,
int  nid 
)
read

Definition at line 369 of file sparse.c.

void __init sparse_mem_maps_populate_node ( struct page **  map_map,
unsigned long  pnum_begin,
unsigned long  pnum_end,
unsigned long  map_count,
int  nodeid 
)

Definition at line 383 of file sparse.c.

unsigned long usemap_size ( void  )

Definition at line 246 of file sparse.c.

Variable Documentation

struct mem_section mem_section [NR_SECTION_ROOTS][SECTIONS_PER_ROOT] ____cacheline_internodealigned_in_smp

Definition at line 26 of file sparse.c.