Added initrd driver

This commit is contained in:
Marco Cetica
2021-02-05 13:05:05 +01:00
parent dd48ba577d
commit f263f3f481
5 changed files with 113 additions and 10 deletions

View File

@@ -13,6 +13,7 @@
#include <stdint.h>
#include "../libc/string.h"
#include "../mem/kheap.h"
#include "fs.h"
typedef struct {
@@ -29,8 +30,5 @@ typedef struct {
// Function to initialize initrd, we'll pass the multiboot
// module as parameter
fs_node_t *init_ramdisk(uint32_t multiboot_location);
static uint32_t initrd_read(fs_node_t *node, uint32_t offset, uint32_t size, uint8_t *buffer);
static struct dirent *initrd_readdir(fs_node_t *node, uint32_t index);
static fs_node_t *initrd_finddir(fs_node_t *node, uint8_t *name);
#endif