EFI autoexec script.
Definition in file efi_autoexec.h.
int efi_autoexec_load |
( |
void |
| ) |
|
Load autoexec script.
- Return values
-
Definition at line 168 of file efi_autoexec.c.
201 DBGC (
device,
"EFI %s discarding zero-length %s\n",
207 DBGC (
device,
"EFI %s loaded %s (%zd bytes)\n",
EFI_LOADED_IMAGE_PROTOCOL * efi_loaded_image
Loaded image protocol for this image.
struct arbelprm_rc_send_wqe rc
#define ENOENT
No such file or directory.
EFI_GUID * protocol
Required protocol GUID.
const char * efi_handle_name(EFI_HANDLE handle)
Get name of an EFI handle.
const char * efi_guid_ntoa(CONST EFI_GUID *guid)
Convert GUID to a printable string.
char * strerror(int errno)
Retrieve string representation of error number.
size_t len
Length of raw file image.
static struct efi_autoexec_loader efi_autoexec_loaders[]
Autoexec script loaders.
int efi_locate_device(EFI_HANDLE device, EFI_GUID *protocol, EFI_HANDLE *parent, unsigned int skip)
Locate parent device supporting a given protocol.
void unregister_image(struct image *image)
Unregister executable image.
int(* load)(EFI_HANDLE handle, struct image **image)
Load autoexec script.
An EFI autoexec script loader.
EFI_HANDLE DeviceHandle
The device handle that the EFI Image was loaded from.
References DBGC, EFI_LOADED_IMAGE_PROTOCOL::DeviceHandle, efi_autoexec_loaders, efi_guid_ntoa(), efi_handle_name(), efi_loaded_image, efi_locate_device(), ENOENT, handle, image::len, efi_autoexec_loader::load, image::name, efi_autoexec_loader::protocol, rc, strerror(), and unregister_image().
Referenced by efi_probe().