1VM_MAP_RAM(9) Memory Management in Linux VM_MAP_RAM(9)
2
3
4
6 vm_map_ram - map pages linearly into kernel virtual address (vmalloc
7 space)
8
10 void * vm_map_ram(struct page ** pages, unsigned int count, int node,
11 pgprot_t prot);
12
14 pages
15 an array of pointers to the pages to be mapped
16
17 count
18 number of pages
19
20 node
21 prefer to allocate data structures on this node
22
23 prot
24 memory protection to use. PAGE_KERNEL for regular RAM
25
27 a pointer to the address that has been mapped, or NULL on failure
28
30Kernel Hackers Manual 2.6. June 2019 VM_MAP_RAM(9)