summaryrefslogtreecommitdiffstats
path: root/include/grub/linux.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/grub/linux.h')
-rw-r--r--include/grub/linux.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/include/grub/linux.h b/include/grub/linux.h
new file mode 100644
index 0000000..594a3f3
--- /dev/null
+++ b/include/grub/linux.h
@@ -0,0 +1,24 @@
+#include <grub/file.h>
+
+struct grub_linux_initrd_component;
+
+struct grub_linux_initrd_context
+{
+ int nfiles;
+ struct grub_linux_initrd_component *components;
+ grub_size_t size;
+};
+
+grub_err_t
+grub_initrd_init (int argc, char *argv[],
+ struct grub_linux_initrd_context *ctx);
+
+grub_size_t
+grub_get_initrd_size (struct grub_linux_initrd_context *ctx);
+
+void
+grub_initrd_close (struct grub_linux_initrd_context *initrd_ctx);
+
+grub_err_t
+grub_initrd_load (struct grub_linux_initrd_context *initrd_ctx,
+ char *argv[], void *target);