1REMAP_VMALLOC_RANGE_(9) Memory Management in Linux REMAP_VMALLOC_RANGE_(9)
2
3
4
6 remap_vmalloc_range_partial - map vmalloc pages to userspace
7
9 int remap_vmalloc_range_partial(struct vm_area_struct * vma,
10 unsigned long uaddr, void * kaddr,
11 unsigned long size);
12
14 vma
15 vma to cover
16
17 uaddr
18 target user address to start at
19
20 kaddr
21 virtual address of vmalloc kernel memory
22
23 size
24 size of map area
25
27 0 for success, -Exxx on failure
28
29 This function checks that kaddr is a valid vmalloc'ed area, and that it
30 is big enough to cover the range starting at uaddr in vma. Will return
31 failure if that criteria isn't met.
32
33 Similar to remap_pfn_range (see mm/memory.c)
34
36Kernel Hackers Manual 3.10 June 2019 REMAP_VMALLOC_RANGE_(9)