how to find physical address of kernel virtual address
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..