|
SimpleKernel 1.17.0
|
#include "vfs.hpp"#include "filesystem.hpp"#include "kernel_log.hpp"#include "kstd_cstdio"#include "kstd_cstring"#include "mount.hpp"#include "spinlock.hpp"#include "vfs_internal.hpp"
Go to the source code of this file.
Namespaces | |
| namespace | vfs |
Functions | |
| auto | vfs::GetVfsState () -> VfsState & |
| auto | vfs::SkipLeadingSlashes (const char *path) -> const char * |
| 跳过路径中的前导斜杠 | |
| auto | vfs::CopyPathComponent (const char *src, char *dst, size_t dst_size) -> size_t |
| 复制路径组件到缓冲区 | |
| auto | vfs::FindChild (Dentry *parent, const char *name) -> Dentry * |
| 在 dentry 的子节点中查找指定名称 | |
| auto | vfs::AddChild (Dentry *parent, Dentry *child) -> void |
| 添加子 dentry | |
| auto | vfs::RemoveChild (Dentry *parent, Dentry *child) -> void |
| 从父 dentry 中移除子 dentry | |
| auto | vfs::Init () -> Expected< void > |
| VFS 全局初始化 | |
| auto | vfs::GetRootDentry () -> Dentry * |
| 获取根目录 dentry | |
| auto | vfs::SetRootDentry (Dentry *dentry) -> void |
| auto | vfs::GetMountTableInternal () -> MountTable * |