84 old_len = (
old ? table->
len (
old ) : 0 );
87 if ( old_len && backup ) {
94 DBGC ( table,
"EFITAB %s %p+%#zx backed up\n",
104 new_len, &
new ) ) != 0 ) {
118 DBGC ( table,
"EFITAB %s could not install: %s\n",
123 DBGC ( table,
"EFITAB %s %p+%#zx uninstalled\n",
127 DBGC ( table,
"EFITAB %s %p+%#zx installed\n",
167 old = ( backup ? *backup :
NULL );
172 if ( backup && *backup ) {
EFI_BOOT_SERVICES * BootServices
A pointer to the EFI Boot Services Table.
struct arbelprm_rc_send_wqe rc
#define EEFI(efirc)
Convert an EFI status code to an iPXE status code.
128 bit buffer containing a unique identifier value.
EFI_GUID VendorGuid
The 128-bit GUID value that uniquely identifies the system configuration table.
An installable EFI configuration table type.
size_t(* len)(const void *data)
Determine length of table.
void * memcpy(void *dest, const void *src, size_t len) __nonnull
EFI configuration tables.
assert((readw(&hdr->flags) &(GTF_reading|GTF_writing))==0)
char * strerror(int errno)
Retrieve string representation of error number.
const char * efi_guid_ntoa(CONST EFI_GUID *guid)
Convert GUID to a printable string.
int efi_uninstall_table(struct efi_table *table, void **backup)
Uninstall EFI configuration table.
The data portions of a loaded Runtime Services Driver and the default data allocation type used by a ...
RETURN_STATUS EFI_STATUS
Function return status for EFI API.
UINTN NumberOfTableEntries
The number of system configuration tables in the buffer ConfigurationTable.
uint8_t data[48]
Additional event data.
EFI_SYSTEM_TABLE * efi_systab
The data portions of a loaded Boot Serves Driver, and the default data allocation type used by a Boot...
EFI_GUID * guid
Table GUID.
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
int memcmp(const void *first, const void *second, size_t len)
Compare memory regions.
#define NULL
NULL pointer (VOID *)
void * efi_find_table(EFI_GUID *guid)
Look up EFI configuration table.
EFI_INSTALL_CONFIGURATION_TABLE InstallConfigurationTable
EFI_ALLOCATE_POOL AllocatePool
EFI_CONFIGURATION_TABLE * ConfigurationTable
A pointer to the system configuration tables.
int efi_install_table(struct efi_table *table, const void *data, void **backup)
Install EFI configuration table.
VOID * VendorTable
A pointer to the table associated with VendorGuid.