Name
vm_map_ram —
map pages linearly into kernel virtual address (vmalloc space)
Synopsis
void * vm_map_ram ( | struct page ** pages, |
| unsigned int count, |
| int node, |
| pgprot_t prot) ; |
Arguments
pages
an array of pointers to the pages to be mapped
count
number of pages
node
prefer to allocate data structures on this node
prot
memory protection to use. PAGE_KERNEL for regular RAM
Returns
a pointer to the address that has been mapped, or NULL
on failure