How to check if a file is a present in a directory(directly/indirectly)
Gabriel Duarte
confusosk8 at gmail.com
Fri Mar 6 11:32:16 EST 2015
Maybe it helps:
http://stackoverflow.com/questions/8347553/how-do-i-open-a-directory-at-kernel-level-using-the-file-descriptor-for-that-dir
2015-03-06 12:08 GMT-03:00 noyb noybee <afzalulh at gmail.com>:
> I am building a LKM in which I need to check whether a file is inside
> a particular directory(directly or inside sub-directories). Is there a
> function for this? Do I need to use the lookup function in
> inode_operations for this or is there a better method?
>
> Regards,
> winged_elite
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
--
Gabriel Duarte
Linux User #471185
Rio de Janeiro / RJ
http://genericdev.wordpress.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20150306/8e47a2bc/attachment.html
More information about the Kernelnewbies
mailing list