EFI autoexec script.
Definition in file efi_autoexec.h.
| int efi_autoexec_load |
( |
void | | ) |
|
|
extern |
Load autoexec script.
- Return values
-
Definition at line 169 of file efi_autoexec.c.
169 {
174 unsigned int i;
176
177
180
181
189 continue;
190 }
195
196
199
200
202 DBGC (
device,
"EFI %s discarding zero-length %s\n",
206 }
207
208 DBGC (
device,
"EFI %s loaded %s (%zd bytes)\n",
210 return 0;
211 }
212
214}
struct arbelprm_rc_send_wqe rc
static struct efi_autoexec_loader efi_autoexec_loaders[]
Autoexec script loaders.
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.
EFI_LOADED_IMAGE_PROTOCOL * efi_loaded_image
Loaded image protocol for this image.
int efi_locate_device(EFI_HANDLE device, EFI_GUID *protocol, EFI_HANDLE *parent, unsigned int skip)
Locate parent device supporting a given protocol.
#define ENOENT
No such file or directory.
void unregister_image(struct image *image)
Unregister executable image.
char * strerror(int errno)
Retrieve string representation of error number.
An EFI autoexec script loader.
EFI_GUID * protocol
Required protocol GUID.
int(* load)(EFI_HANDLE handle, struct image **image)
Load autoexec script.
size_t len
Length of raw file image.
References DBGC, efi_autoexec_loaders, efi_guid_ntoa(), EFI_HANDLE, 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().