Getting full pathname for dentry

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I need to get the full pathname for a given dentry.
After searching through previous posts my code looks like this:

...
struct nameidata nd;
user_path_walk( dentry->d_name.name, &nd );
fullname = d_path( nd.dentry, nd.mnt, fullname, namelen );
...

I get an "Unable to handle kernel paging request..." as soon as d_path is called.
Any advice?


_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963



-- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux