Getting struct page pointer from virtual address

ajay saini ajay_saini1006 at yahoo.co.in
Tue Sep 3 13:29:17 EDT 2013


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_saini1006 at yahoo.co.in>
To: "kernelnewbies at kernelnewbies.org" <kernelnewbies at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20130904/b2f12336/attachment.html 


More information about the Kernelnewbies mailing list