GETUEFIVAR SubroutineUsage:
binvar = UEFIGETVAR(varname, namespaceguid)
Description:
Retrieve a UEFI firmware variable (variables are case sensitive) and its attributes in binvar.attributes. This subroutine is only available when the system booted using UEFI. In linux, the efivarfs must be mounted at
/sys/firmware/efi/efivars. The linux command to mount is: mount -t efivarfs none /sys/firmware/efi/efivars. On failure the returned binvar is zero bytes in length and contains a member binvar.errno to indicate the error code.
Example:
|