allow specifiying access mode when creating twifs file node
[lunaix-os.git] / lunaix-os / includes / lunaix / fs / ramfs.h
index f7f8e270a96066f8b226f8af5be5b2efac70fbf6..e430df78182186620f1d58efd12a3dd723a47a78 100644 (file)
@@ -1,7 +1,19 @@
 #ifndef __LUNAIX_RAMFS_H
 #define __LUNAIX_RAMFS_H
 
-void
-ramfs_init();
+#include <lunaix/types.h>
+
+#define RAMF_FILE 0
+#define RAMF_DIR 1
+#define RAMF_SYMLINK 2
+
+struct ram_inode
+{
+    u32_t flags;
+    size_t size;
+    char* symlink;
+};
+
+#define RAM_INODE(data) ((struct ram_inode*)(data))
 
 #endif /* __LUNAIX_RAMFS_H */