aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/fs/initrd.h
diff options
context:
space:
mode:
authorMarvin Borner2019-10-30 16:02:10 +0100
committerMarvin Borner2019-10-30 16:02:10 +0100
commit118898807865ba11f5d7754f6f0572a0403f8512 (patch)
tree0b69c881089d659ebb214c409b699cc06323ab3d /src/kernel/fs/initrd.h
parentfd4f0a11126a20e75d72f8f2e6d418598fd5f37d (diff)
Started implementation of initrd based vfs
Diffstat (limited to 'src/kernel/fs/initrd.h')
-rw-r--r--src/kernel/fs/initrd.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/kernel/fs/initrd.h b/src/kernel/fs/initrd.h
new file mode 100644
index 0000000..10dec22
--- /dev/null
+++ b/src/kernel/fs/initrd.h
@@ -0,0 +1,20 @@
+#ifndef MELVIX_INITRD_H
+#define MELVIX_INITRD_H
+
+#include <stdint.h>
+#include <kernel/fs/vfs.h>
+
+typedef struct {
+ uint32_t nfiles;
+} initrd_header_t;
+
+typedef struct {
+ uint8_t magic;
+ int8_t name[64];
+ uint32_t offset;
+ uint32_t length;
+} initrd_file_header_t;
+
+fs_node_t *initialise_initrd(uint32_t location);
+
+#endif