I am trying to define data structures for a filesystem. I understand that both files and directories are represented by inodes, with one bit to differentiate between the two.
However, I am not able to understand how to get files present under a particular directory. In Unix Filesystem, I am not seeing any structure to point to child inodes? Is there a structure which does that? If not, how do I get files present under a directory? And if both are represented by same data structure (inode), what does child inodes in directories point to?