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

Re: Logical address to physical address translation



Arun Babu wrote:
Further, if I want to get the physical frame number for a given logical
address, can someone please suggest me the way? [Is writing a code to walk
through the page tables the only way? or can we make use of an already
existing function/module?]

Replying too soon, sorry. Check if this helps:
__pa(kaddr) >> PAGE_SHIFT
(ideas taken from the same header file)


regards,


Mulyadi


-- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ