feat(kernel/vfs): add AddRootAt, SetRootAt, RemoveRoot & RootExists functions

Signed-off-by: EnderIce2 <enderice2@protonmail.com>
This commit is contained in:
2025-04-04 11:51:47 +00:00
parent 120d67fb1a
commit b232dc6b40
3 changed files with 52 additions and 1 deletions

View File

@ -161,7 +161,11 @@ namespace vfs
int UnregisterFileSystem(dev_t Device);
void AddRoot(Inode *Root);
void AddRootAt(Inode *Root, size_t Index);
bool SetRootAt(Inode *Root, size_t Index);
void RemoveRoot(Inode *Root);
FileNode *GetRoot(size_t Index);
bool RootExists(size_t Index);
FileNode *Create(FileNode *Parent, const char *Name, mode_t Mode);
FileNode *ForceCreate(FileNode *Parent, const char *Name, mode_t Mode);