diff options
author | Marvin Borner | 2020-05-03 01:11:54 +0200 |
---|---|---|
committer | Marvin Borner | 2020-05-03 01:11:54 +0200 |
commit | 5d88097b8d704f29a64ec5b41b5f28f8b24dd2ce (patch) | |
tree | d018dd16ee38de9b710072d01ac1ebc6494be3b1 /src/kernel/fs/vfs.h | |
parent | e8f1c287a63f0f71fe463f7271834538b45f8c05 (diff) |
Began linked vfs with file indexing
Diffstat (limited to 'src/kernel/fs/vfs.h')
-rw-r--r-- | src/kernel/fs/vfs.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/kernel/fs/vfs.h b/src/kernel/fs/vfs.h index 867fae2..26c34f9 100644 --- a/src/kernel/fs/vfs.h +++ b/src/kernel/fs/vfs.h @@ -36,6 +36,7 @@ struct fs_node { struct dev *dev; struct fs_node *node_ptr; + struct fs_node *link; void *impl; @@ -61,4 +62,10 @@ void fs_close(struct fs_node *node); struct dirent *fs_read_dir(struct fs_node *node, uint32_t index); struct fs_node *fs_find_dir(struct fs_node *node, char *name); +char *basename(char *name); +void vfs_ls(char *path); +struct fs_node *vfs_get_dir(struct fs_node *node, char *name); +struct fs_node *vfs_touch(struct fs_node *node, char *name); +struct fs_node *vfs_mkdir(struct fs_node *node, char *name); + #endif
\ No newline at end of file |