![Intel Extensible Firmware Interface Specification Download Page 100](http://html1.mh-extra.com/html/intel/extensible-firmware-interface/extensible-firmware-interface_specification_2073117100.webp)
Extensible Firmware Interface Specification
82
12/12/00
Version 1.02
3.5.3 SetVariable()
Summary
Sets the value of a variable.
Prototype
EFI_STATUS
SetVariable (
IN CHAR16
*VariableName,
IN EFI_GUID
*VendorGuid,
IN UINT32
Attributes,
IN UINTN
DataSize,
IN VOID
*Data
);
Parameters
VariableName
A Null-terminated Unicode string that is the name of the
vendor’s variable. Each
VariableName
is unique for each
VendorGuid
.
VendorGuid
A unique identifier for the vendor. Type
EFI_GUID
is defined
in Section 3.3.1.
Attributes
Attributes bitmask to set for the variable. See Section 3.5.1.
DataSize
The size in bytes of the
Data
buffer. A size of zero causes the
variable to be deleted.
Data
The contents for the variable.
Description
Variables are stored by the firmware and may maintain their values across power cycles. Each
vendor may create and manage its own variables without the risk of name conflicts by using a
unique
VendorGuid
.
Each variable has
Attributes
that define how the firmware stores and maintains the data value.
If the
EFI_VARIABLE_NON_VOLATILE
attribute is
not
set, the firmware stores the variable in
normal memory and it is not maintained across a power cycle. Such variables are used to pass
information from one component to another. An example of this is the firmware’s language code
support variable. It is created at firmware initialization time for access by EFI components that
may need the information, but does not need to be backed up to non-volatile storage.
Summary of Contents for Extensible Firmware Interface
Page 1: ...Extensible Firmware Interface Specification Version 1 02 December 12 2000...
Page 4: ...Extensible Firmware Interface Specification iv 12 12 00 Version 1 02...
Page 42: ...Extensible Firmware Interface Specification 24 12 01 00 Version 1 02...
Page 190: ...Extensible Firmware Interface Specification 172 12 12 00 Version 1 02...
Page 200: ...Extensible Firmware Interface Specification 182 12 12 00 Version 1 02...
Page 226: ...Extensible Firmware Interface Specification 208 12 12 00 Version 1 02...
Page 230: ...Extensible Firmware Interface Specification 212 12 12 00 Version 1 02...
Page 252: ...Extensible Firmware Interface Specification 234 12 12 00 Version 1 02...
Page 294: ...Extensible Firmware Interface Specification 276 12 12 00 Version 1 02...
Page 348: ...Extensible Firmware Interface Specification 330 12 01 00 Version 1 01...
Page 350: ...Extensible Firmware Interface Specification 332 12 12 00 Version 1 02...
Page 354: ...Extensible Firmware Interface Specification 336 12 12 00 Version 1 02...
Page 362: ...Extensible Firmware Interface Specification 344 12 12 00 Version 1 02...
Page 486: ...Extensible Firmware Interface Specification 468 12 12 00 Version 1 02...
Page 494: ...Extensible Firmware Interface Specification 476 12 12 00 Version 1 02...