void dentry_dec_mount_count(dentry_t *dentry)
Decrements the mount count of a dentry.
void dentry_inc_mount_count(dentry_t *dentry)
Increments the mount count of a dentry.
dentry_t * dentry_new(superblock_t *superblock, dentry_t *parent, const char *name)
Create a new dentry.
uint64_t dentry_make_positive(dentry_t *dentry, inode_t *inode)
Make a dentry positive by associating it with an inode.
uint64_t dentry_generic_getdents(dentry_t *dentry, dirent_t *buffer, uint64_t count, uint64_t *offset, path_flags_t flags)
Helper function for a basic getdents.
uint64_t getdents(fd_t fd, dirent_t *buffer, uint64_t count)
System call for reading directory entires.
Dentry operations structure.
Directory entry structure.
atomic_uint64_t mountCount
superblock_t * superblock
list_entry_t siblingEntry
_Atomic(dentry_flags_t) flags
A entry in a doubly linked list.