On 07.05.24 09:47, sunil bhargo wrote:
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) ?
Recent related question:
https://lore.kernel.org/linux-mm/ea59a8b7-6167-4ab1-92f2-f2a171310a50@xxxxxxxxxx/T/
--
Cheers,
David / dhildenb