title: How to access Linux kernel data structures?
body: <p>I want to print the information of each process and what that process is doing at runtime. i.e. Which file is read/write by that process continuously.</p>
  
  <p>For this I'm writing a kernel module. </p>
  
  <p>Any one have idea to How to access this information in kernel module or how to access the process table data structures in my kernel module?</p>
  
  <p>pseudo code for task will be like this:</p>
  
  <pre><code>1. get each process from /proc.
  2. Access the data structure of that process i.e. process table and all
  3. print what that process is doing i.e. which file it is accessing (i.e. reading or writing) at rutime.
  </code></pre>