| UEFIStarter
    a simple UEFI framework | 
File handling functions. More...
#include <Uefi.h>#include <Guid/FileInfo.h>#include <Protocol/SimpleFileSystem.h>Go to the source code of this file.
| Data Structures | |
| struct | file_contents_t | 
| Data structure for file contents.  More... | |
| Functions | |
| EFI_FILE_HANDLE | find_root_volume () | 
| Opens a handle for the first filesystem root.  More... | |
| EFI_FILE_HANDLE | find_file (CHAR16 *pathname) | 
| Opens a file handle, if the given file exists.  More... | |
| file_contents_t * | get_file_contents (CHAR16 *filename) | 
| Reads a file's contents.  More... | |
File handling functions.
| EFI_FILE_HANDLE find_root_volume | ( | ) | 
Opens a handle for the first filesystem root.
In the UEFI shell, this will most likely be FS0:.
| EFI_FILE_HANDLE find_file | ( | CHAR16 * | pathname | ) | 
Opens a file handle, if the given file exists.
This assumes the file is on the first root volume (usually FS0:).
| pathname | the file's full path within the volume, e.g. "\\startup.nsh" to get the startup script. | 
| file_contents_t* get_file_contents | ( | CHAR16 * | filename | ) | 
Reads a file's contents.
If you just want to read files you'll probably want to use this function: it performs all the UEFI overhead for you already. All you have to do is free the returned pointer's memory pages when you're done.
| filename | the file's full path within the volume, e.g. "\\startup.nsh" to get the startup script. | 
 1.8.13
 1.8.13