Re: Question regarding pinning of memory

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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





[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux