<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div>More information :&nbsp;</div><div>- Linux kernel version : 2.6.32 (But I would like a method which is portable to other higher versions as well)</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;"><span style="background-color: transparent;">- I tried using&nbsp;follow_page, but this function is not exported from the kernel so, can't use it. (Any reason why this function is not exported??)</span><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;"><span style="background-color: transparent;"><br></span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new
 york', times, serif; background-color: transparent; font-style: normal;"><span style="background-color: transparent;">Thanks</span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;"><span style="background-color: transparent;">Ajay</span></div><div><br></div>  <div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"> <div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"> <div dir="ltr"> <hr size="1">  <font size="2" face="Arial"> <b><span style="font-weight:bold;">From:</span></b> ajay saini &lt;ajay_saini1006@yahoo.co.in&gt;<br> <b><span style="font-weight: bold;">To:</span></b> "kernelnewbies@kernelnewbies.org" &lt;kernelnewbies@kernelnewbies.org&gt; <br> <b><span style="font-weight: bold;">Sent:</span></b> Tuesday, 3 September 2013 1:21 PM<br> <b><span style="font-weight:
 bold;">Subject:</span></b> Getting struct page pointer from virtual address<br> </font> </div> <div class="y_msg_container"><br><div id="yiv7803180317"><div><div style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"><div><font face="times new roman, new york, times, serif">Hey,</font></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;"><font face="times new roman, new york, times, serif"><br></font></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;"><font face="times new roman, new york, times, serif">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.</font></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;"><font face="times new roman, new york, times, serif"><br></font></div><div><font face="times new roman, new york, times, serif">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.</font></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;"><font face="times new roman, new york, times, serif"><br></font></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;"><font face="times new roman, new york, times,
 serif">Thanks</font></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;"><font face="times new roman, new york, times, serif">Ajay</font></div></div></div></div><br><br></div> </div> </div>  </div></body></html>