LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   pte_alloc_one() address argument (https://www.linuxquestions.org/questions/linux-kernel-70/pte_alloc_one-address-argument-4175666069/)

redacted 12-16-2019 03:24 PM

pte_alloc_one() address argument
 
I have local changes to the 4.15 kernel which use the address argument to pte_alloc_one(). The address arg was otherwise unused and has been removed in 5.0.

The short explanation:

I want to allocate page table pages from memory that was reserved during boot, but only for memory allocated by mmap() when called with a specific MAP_ flag set. When do_mmap() sees that flag, it sets a flag in vm_flags. When pte_alloc_one() is called, if the special VM_ flag is set in the mm_struct and the address is between vm_start and vm_end, the page is allocated from the memory that was reserved at boot.

My question:

Without the address argument, how can I determine if the faulting address belongs to memory that was allocated by mmap() with the special MAP_ flag set?


All times are GMT -5. The time now is 03:57 PM.