SimpleKernel 1.17.0
Loading...
Searching...
No Matches
vfs_internal.hpp File Reference
#include "mount.hpp"
#include "spinlock.hpp"
#include "vfs.hpp"
Include dependency graph for vfs_internal.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  vfs::VfsState
 VFS 全局状态结构体 More...
 

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
 

Variables

static constexpr size_t vfs::kMaxPathLength = 4096
 VFS 路径最大长度限制