Re: finding a file path

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

 



* Israel FErnandez (israel@seg.inf.cu) wrote:
> Hi every one...
> 
> I made a kernel module intending to make a preprocessing in files that are 
> goint to be opened, it work fine except when the command to open the file has 
> the following sintax:
> 
> cat ./lolo.txt

you need to resolve the pathname.  use path_init()/path_walk() to fill
out the nameidata.  once you have valid vfsmount/dentry pair you can use
d_path() to create a fully qualified path name.  this can be racy, what
are you trying to do?

cheers,
-chris
--
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