From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rik van Riel Subject: Re: Given a struct page *, how to find corresponding physical address? Date: Mon, 25 Sep 2006 19:43:42 -0400 Message-ID: <451869AE.4090107@surriel.com> References: Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Sender: linux-newbie-owner@vger.kernel.org List-Id: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: Rajat Jain Cc: Linux Newbie , kernelnewbies Rajat Jain wrote: > Hi, > > This is in context of mapping of virtual addresses to physical > addresses by the MMU. I read that the virtual address is taken through > the three level page tables to finally arrive at a struct page. > > But how to find the physical address of this page? 1) page tables point directly at the physical address 2) if you have a struct page, you can call page_to_phys -- "You don't have to be crazy to do this... but it helps." -- Bob Ross - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.linux-learn.org/faqs