Re: kmalloc() question - migration/remap of kmalloc()'ed pages

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

 



On 25.04.24 11:21, Mounesh Badiger wrote:
Hi,

Hi,


We have a device driver that allocates physical pages using kmalloc() and these pages are mapped to the userspace process via mmap.

Which interface are you using for inserting these pages into the page tables?

remap_pfn_range? vm_insert_page() ? ...

Using kmalloc sound weird ... why not simply alloc_pages()?


Does the kmalloc()'ed memory mapped to userspace can migrate or get remapped due to any of kernel mm operations?

No.


we are looking to keep VA->PA mapping intact from a userspace process point of view.

That will work.

--
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