Re: Accessing File system directories

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

 



> 

> Hi,
> 
> Have a look at vfs_path_lookup() . In particular probably you want path_walk().
> 
> Thanks -
> Manish
> 

Well, I looked into that but I don't see how that may help me.
path_walk() is called by filp_open() so I would get the same information.
However, I don't see how I can find out which files inside that directory exist.

I have the "struct nameidata" which gives me access to "struct dentry" which gives me the "struct inode"
I assume I have to somehow start at the dentry struct to find all the childs of that entry.

But how do I do that?

Dan



      


--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at 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