title: How to obtain a pathname or dentry or struct file from a given inode?
body: <p>I need to know how to obtain a pathname or <code>dentry</code> or <code>struct file</code> from a given inode.</p>
  
  <p>I was using <code>file_open</code> to obtain <code>struct file</code> from a pathname but but always gave kernel panic. I need a way to compare an inode from my list of inodes with a inode from a pathname or compare all inodes in the disk to find corresponding pathnames, and then compare with my list of inodes.</p>