bool dentry_is_positive(dentry_t *dentry)
Check if a dentry is positive.
bool dentry_is_dir(dentry_t *dentry)
Check if the inode associated with a dentry is a directory.
bool dentry_is_file(dentry_t *dentry)
Check if the inode associated with a dentry is a file.
uint64_t file_generic_seek(file_t *file, int64_t offset, seek_origin_t origin)
Helper function for basic seeking.
inode_t * inode
Will be NULL if the dentry is negative, once positive it will never be NULL.