<div dir="ltr">Maybe it helps:<div><a href="http://stackoverflow.com/questions/8347553/how-do-i-open-a-directory-at-kernel-level-using-the-file-descriptor-for-that-dir" target="_blank">http://stackoverflow.com/questions/8347553/how-do-i-open-a-directory-at-kernel-level-using-the-file-descriptor-for-that-dir</a><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-03-06 12:08 GMT-03:00 noyb noybee <span dir="ltr"><<a href="mailto:afzalulh@gmail.com" target="_blank">afzalulh@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I am building a LKM in which I need to check whether a file is inside<br>
a particular directory(directly or inside sub-directories). Is there a<br>
function for this? Do I need to use the lookup function in<br>
inode_operations for this or is there a better method?<br>
<br>
Regards,<br>
winged_elite<br>
<br>
_______________________________________________<br>
Kernelnewbies mailing list<br>
<a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br>
<a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div>Gabriel Duarte</div>Linux User #471185<br>Rio de Janeiro / RJ<br><a href="http://genericdev.wordpress.com/" target="_blank">http://genericdev.wordpress.com/</a><br></div>
</div>