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

Reply via email to