Dear All,

In my kernel module i have created a kernel thread and did some memory
allocation using vmalloc().
Now i need to find the physical address of this memory address returned
by vmalloc().

I am trying to go through the page table to get the physical address.
But there is some problem, as there is no memory descriptor associated
with kernel thread current->mm is NULL.
so pgd_offset(current->mm, address) will not work and
current->active_mm will not work properly

how to get physical address?

Thanks
Neeraj