Hi,
   We have written an application that would open a device and then mmap it.
   In the kernel module the memory is allocated using vmalloc (don't require contiguous physical memory)  and in mmap we are calling remap_pfn_range to map the memory to user space.
   The question is would this mechanism be enough that the memory would be pinned (neither swappable nor the page migration would happen) ?

Thanks,
Sunil Bhargo