1. NAME

remap_vmalloc_range - map vmalloc pages to userspace

2. SYNOPSIS

int remap_vmalloc_range(struct vm_area_struct *  vma , void *  addr , unsigned long  pgoff );

3. ARGUMENTS

vma
    vma to cover (map full range of vma)

addr
    vmalloc memory

pgoff
    number of pages into addr before first page to map

4. RETURNS

0 for success, -Exxx on failure

This function checks that addr is a valid vmallocAqed area, and that it is big enough to cover the vma. Will return failure if that criteria isnAqt met.

Similar to remap_pfn_range (see mm/memory.c)

5. COPYRIGHT