|
PatchworkOS
|
#include <kernel/fs/path.h>#include <kernel/sync/mutex.h>#include <kernel/utils/map.h>#include <kernel/utils/ref.h>#include <stdatomic.h>#include <stdint.h>#include <sys/io.h>#include <sys/list.h>Go to the source code of this file.
Data Structures | |
| struct | dentry_ops_t |
| Dentry operations structure. More... | |
| struct | dentry_t |
| Directory entry structure. More... | |
Macros | |
| #define | DENTRY_IS_ROOT(dentry) (dentry->parent == dentry) |
| Macro to check if a dentry is the root entry in its filesystem. | |
Typedefs | |
| typedef struct dentry | dentry_t |
| typedef struct dentry_ops | dentry_ops_t |
| typedef struct inode | inode_t |
| typedef struct superblock | superblock_t |
| typedef uint64_t | dentry_id_t |
| Dentry ID type. | |
Enumerations | |
| enum | dentry_flags_t { DENTRY_NONE = 0 , DENTRY_NEGATIVE = 1 << 1 } |
| Flags for a dentry. More... | |
Functions | |
| 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. | |
| void | dentry_inc_mount_count (dentry_t *dentry) |
| Increments the mount count of a dentry. | |
| void | dentry_dec_mount_count (dentry_t *dentry) |
| Decrements the mount count of a dentry. | |
| 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. | |
| typedef struct dentry_ops dentry_ops_t |
| typedef struct superblock superblock_t |