Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
ioremap.c File Reference
#include <linux/vmalloc.h>
#include <linux/io.h>
#include <asm/pgalloc.h>
#include <asm/kmap_types.h>
#include <asm/fixmap.h>
#include <asm/bug.h>
#include <asm/pgtable.h>
#include <linux/sched.h>
#include <asm/tlbflush.h>

Go to the source code of this file.

Functions

void __iomem *__init_refok __ioremap (phys_addr_t addr, unsigned long size, pgprot_t prot)
 
void iounmap (void *addr)
 
pte_t __init_refokpte_alloc_one_kernel (struct mm_struct *mm, unsigned long address)
 

Variables

int mem_init_done
 

Function Documentation

void __iomem* __init_refok __ioremap ( phys_addr_t  addr,
unsigned long  size,
pgprot_t  prot 
)

Definition at line 42 of file ioremap.c.

void iounmap ( void addr)

Definition at line 84 of file ioremap.c.

pte_t __init_refok* pte_alloc_one_kernel ( struct mm_struct mm,
unsigned long  address 
)
inline

OK, this one's a bit tricky... ioremap can get called before memory is initialized (early serial console does this) and will want to alloc a page for its mapping. No userspace pages will ever get allocated before memory is initialized so this applies only to kernel pages. In the event that this is called before memory is initialized we allocate the page using the memblock infrastructure.

Definition at line 119 of file ioremap.c.

Variable Documentation

int mem_init_done

Definition at line 30 of file init.c.