Accessing dentry structs and lists in the VFS

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

 



Hi folks,

If I have a file object in the kernel, and want to get hold of the files in that dentry Object, how do I approach it?

At the moment I'm trying something like,

printk("%s\n", file->f_dentry->d_subdirs->next.d_name);

However I'm getting an error based on not understanding the structures correctly. Am I correct in thinking that if 'file' is a directory, d_subdirs will hold the first file in that directory? How can I get hold of the names?

Thanks, Sam

[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