feat(kernel): implement Phase 5 - VFS abstraction, in-memory RamFS & interactive airlys-sh shell
This commit is contained in:
1 parent
6ee659ac6b
commit
adfa4dc262
10 files changed
+680
-11
No files matched your search
@@ -0,0 +1,15 @@
|
||||
#ifndef AIRLYS_RAMFS_H
|
||||
#define AIRLYS_RAMFS_H
|
||||
|
||||
#include <airlys/vfs.h>
|
||||
|
||||
/* Initialize in-memory RAM filesystem and standard directories */
|
||||
vfs_node_t* ramfs_init(void);
|
||||
|
||||
/* Create directory under a parent directory */
|
||||
vfs_node_t* ramfs_create_dir(vfs_node_t* parent, const char* name);
|
||||
|
||||
/* Create a file with given text content under a parent directory */
|
||||
vfs_node_t* ramfs_create_file(vfs_node_t* parent, const char* name, const char* content);
|
||||
|
||||
#endif /* AIRLYS_RAMFS_H */
|
||||
Reference in new issue
Block a user