aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/fs/initrd.h
diff options
context:
space:
mode:
authorMarvin Borner2019-10-31 17:47:40 +0100
committerGitHub2019-10-31 17:47:40 +0100
commitc7e755cb843593db1eedb26c5c24932bbe743745 (patch)
treead14da17e6d0d883e68cc6eacc99ae522036dda8 /src/kernel/fs/initrd.h
parentfd4f0a11126a20e75d72f8f2e6d418598fd5f37d (diff)
parent40a214f3c69a3d7da8c2f9bed5038dfa0ab72d4b (diff)
Merged pull request usermode
Added usermode
Diffstat (limited to 'src/kernel/fs/initrd.h')
-rw-r--r--src/kernel/fs/initrd.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/kernel/fs/initrd.h b/src/kernel/fs/initrd.h
new file mode 100644
index 0000000..bb5c376
--- /dev/null
+++ b/src/kernel/fs/initrd.h
@@ -0,0 +1,22 @@
+#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);
+
+void initrd_test();
+
+#endif