summaryrefslogtreecommitdiffstats
path: root/ird/initrd.h
diff options
context:
space:
mode:
authorJon Santmyer <jon@jonsantmyer.com>2024-03-11 21:30:31 -0400
committerJon Santmyer <jon@jonsantmyer.com>2024-03-11 21:30:31 -0400
commitd1ff7bcc91886626dc9060ec5fb67ee102ab7c1d (patch)
tree8f0b5cd8aad31089131785dc6e37b659490f9955 /ird/initrd.h
downloadjove-kernel-d1ff7bcc91886626dc9060ec5fb67ee102ab7c1d.tar.gz
jove-kernel-d1ff7bcc91886626dc9060ec5fb67ee102ab7c1d.tar.bz2
jove-kernel-d1ff7bcc91886626dc9060ec5fb67ee102ab7c1d.zip
usermode capable kernel with logging syscall
Diffstat (limited to 'ird/initrd.h')
-rw-r--r--ird/initrd.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/ird/initrd.h b/ird/initrd.h
new file mode 100644
index 0000000..f236fa1
--- /dev/null
+++ b/ird/initrd.h
@@ -0,0 +1,21 @@
+#ifndef JOVE_INITRD_H
+#define JOVE_INITRD_H 1
+
+#include <stddef.h>
+#include "tar.h"
+#include "lib/linkedlist.h"
+
+struct InitrdFile {
+ struct InitrdFile *next;
+ struct TARHeader *header;
+ const char *name;
+ size_t size;
+ const void *data;
+};
+
+void initrd_setup(void);
+
+struct InitrdFile *ird_getfile(const char *path);
+struct SLinkedList *ird_getfiles(void);
+
+#endif