Re: Correct way to access the physmap? - Was: Re: [PATCH 7/9] Pmalloc Rare Write: modify selected pools

From: Dave Hansen
Date: Thu May 03 2018 - 17:55:31 EST


On 05/03/2018 02:52 PM, Igor Stoppa wrote:
> At the end of the summit, we agreed that I would go through the physmap.

Do you mean the kernel linear map? That's just another name for the
virtual address that you get back from page_to_virt():

int *j = page_to_virt(vmalloc_to_page(i));