PatchworkOS
Loading...
Searching...
No Matches
disk.c File Reference
#include "disk.h"
#include "efilib.h"
#include <boot/boot_info.h>
#include <sys/list.h>

Go to the source code of this file.

Functions

static void boot_file_free (boot_file_t *file)
 
static void boot_dir_free (boot_dir_t *dir)
 
static boot_file_tram_disk_load_file (EFI_FILE *volume, const CHAR16 *path)
 
static boot_dir_tdisk_load_dir (EFI_FILE *volume, const CHAR16 *name)
 
EFI_STATUS disk_load (boot_disk_t *disk, EFI_FILE *rootHandle)
 

Function Documentation

◆ boot_dir_free()

static void boot_dir_free ( boot_dir_t dir)
static

◆ boot_file_free()

static void boot_file_free ( boot_file_t file)
static

Definition at line 9 of file disk.c.

References file, and NULL.

Referenced by boot_dir_free(), and ram_disk_load_file().

◆ disk_load()

EFI_STATUS disk_load ( boot_disk_t disk,
EFI_FILE *  rootHandle 
)

Definition at line 203 of file disk.c.

References disk_load_dir(), NULL, and boot_disk_t::root.

Referenced by boot_info_populate().

◆ disk_load_dir()

static boot_dir_t * disk_load_dir ( EFI_FILE *  volume,
const CHAR16 *  name 
)
static

◆ ram_disk_load_file()

static boot_file_t * ram_disk_load_file ( EFI_FILE *  volume,
const CHAR16 *  path 
)
static

Definition at line 45 of file disk.c.

References boot_file_free(), file, list_entry_init(), MAX_NAME, dentry_t::name, and NULL.

Referenced by disk_load_dir().