|
PatchworkOS
10941b4
A non-POSIX operating system.
|
Directory context used to iterate over directory entries. More...
#include <dentry.h>
Data Fields | |
| bool(* | emit )(dir_ctx_t *ctx, const char *name, ino_t number, itype_t type) |
| Emit function. | |
| size_t | pos |
| The current position in the directory, can be used to skip entries. | |
| void * | private |
| Private data that the filesystem can use to conveniently pass data. | |
| size_t | index |
| An index that the filesystem can use for its own purposes. | |
Emit function.
Should be called on all entries inside a directory while iterating over it, until this function returns false.
Will be implemented by the VFS not the filesystem.
| ctx | The directory context. |
| name | The name of the entry. |
| number | The inode number of the entry. |
| type | The inode type of the entry. |
true to continue iterating, false to stop. | size_t dir_ctx_t::pos |
| void* dir_ctx_t::private |
| size_t dir_ctx_t::index |