Arun Babu wrote:
Hi
I understand that to convert from logical to physical address space, we can
use the macro __pa or virt_to_phys(), which applies for kernel memory space
and not for user address space. (Am I correct?)
AFAIK yes..
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?]
please check virt_to_page(kaddr) (include/asm-i386/page.h) and see if it
meets your need.
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