Directories
I/O operations on directories inside the kernel are required to support the functions defined inside the POSIX dirent.h header.
The most important one is to be able to retrieve the children of a directory (readdir). We could maybe add
an additional codepath inside sys_read() that would read into a struct dirent * pointer specified by buf.
The file description's offset should represent how far we are inside the list of children.
TODO
Directories
I/O operations on directories inside the kernel are required to support the functions defined inside the POSIX dirent.h header.
The most important one is to be able to retrieve the children of a directory (readdir). We could maybe add
an additional codepath inside sys_read() that would read into a
struct dirent *pointer specified by buf.The file description's offset should represent how far we are inside the list of children.
TODO