More information : 
- Linux kernel version : 2.6.32 (But I would like a method which is portable to 
other higher versions as well)
- I tried using follow_page, but this function is not exported from the kernel 
so, can't use it. (Any reason why this function is not exported??)


Thanks
Ajay


________________________________
 From: ajay saini <ajay_saini1...@yahoo.co.in>
To: "kernelnewbies@kernelnewbies.org" <kernelnewbies@kernelnewbies.org> 
Sent: Tuesday, 3 September 2013 1:21 PM
Subject: Getting struct page pointer from virtual address
 


Hey,

I am working on a linux kernel module and I have a virtual address and mm 
(struct mm_struct) for a process in this module. I can find the virtaul memory 
area to which this address belongs to by using find_vma.

Is there a function in the linux kernel which I can use in this module (i.e. 
exported from the kernel) to get struct page pointer for this virtual address.

Thanks
Ajay
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Reply via email to