How to get the dentry value - no path_lookup

Pria Mn pria.mn9 at gmail.com
Mon Sep 7 02:40:56 EDT 2015


Hi,



I happened to come across the below discussion.


http://lists.kernelnewbies.org/pipermail/kernelnewbies/2012-August/005914.html


I am having a similar issue.

I am using Rhel7-3.10.0-123

kernel. I tried all the options that are mentioned above and none of the
api's

including kern_path()

return valid dentry value. My requirement is to fetch directory name from
filepath.



Can anybody suggest a work-around for this ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20150907/5333066b/attachment.html 


More information about the Kernelnewbies mailing list