1REMAP_VMALLOC_RANGE(9) Memory Management in Linux REMAP_VMALLOC_RANGE(9)
2
3
4
6 remap_vmalloc_range - map vmalloc pages to userspace
7
9 int remap_vmalloc_range(struct vm_area_struct * vma, void * addr,
10 unsigned long pgoff);
11
13 vma
14 vma to cover (map full range of vma)
15
16 addr
17 vmalloc memory
18
19 pgoff
20 number of pages into addr before first page to map
21
23 0 for success, -Exxx on failure
24
25 This function checks that addr is a valid vmalloc'ed area, and that it
26 is big enough to cover the vma. Will return failure if that criteria
27 isn't met.
28
29 Similar to remap_pfn_range (see mm/memory.c)
30
32Kernel Hackers Manual 2.6. November 2011 REMAP_VMALLOC_RANGE(9)