Re: physical address of user virtual address

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

 



On 3/28/06, Nilanjan Roychowdhury <Nilanjan.Roychowdhury@xxxxxxxx> wrote:
>
>
>
> HI,
>
> Is it possible to find the corresponding Physical address of a user space
> virtual address?

yes this is almost what the page fault routine do. Do check
do_pagefault() function, that will give you an Idea. Get the Base
address of Page Directory by reading CR3 register and then interepret
the logical address to physical address.

Gaurav

>
> -Nilanjan


--
--
-Gaurav
Email: gauravd.chd@xxxxxxxxx
---------------------------------
Read my blog at: http://lkdp.blogspot.com/
---------------------------------

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux