Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 10-20-2006, 08:29 PM   #1
LQ Newbie
Registered: Oct 2005
Posts: 6

Rep: Reputation: 0
how to find physical address of kernel virtual address

Hi All,

My kernel module recieve some virtual address from other module. This virtual can be kernel logical address or kernel virtual address.

if the memory is allocated by kmalloc() it will returns the kernel logical address. In this case i can use __pa() to get its physical address as there is a direct mapping.
But for memory allocated by vmalloc(), it will return ths kernel virtual address for which there may not be direct mapping for physical address. So in this case __pa() will not work.

I want to know how to make out the address i recieve from other module is kernel virtual address or kernel logical address.
Also how to find the physical address if its kernel virtual address..

Waiting for responces..



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
API for mapping Physical Address to Virtual Address Lakshman_smt Linux - Software 2 10-15-2006 10:08 PM
Memory Mapping (same physical address = virtual address) Linux - Kernel 7 07-25-2006 12:13 AM
How to find an IP address from the MAC address of a remote machine ? jitz Linux - General 3 01-03-2006 08:55 AM
How to find IP address of a machine if I know their MAC Address dysenteryduke Linux - Networking 13 09-12-2005 11:21 AM
Kernel Message:unable to handle kernel NULL pointer dereference at virtual address... dave_d Linux - General 0 02-14-2001 06:01 PM

All times are GMT -5. The time now is 12:47 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration