1 variable services – Intel Extensible Firmware Interface User Manual

Page 194

Advertising
background image

Extensible Firmware Interface Specification

6-2

12/01/02

Version 1.10

6.1 Variable

Services

Variables are defined as key/value pairs that consist of identifying information plus attributes (the
key) and arbitrary data (the value). Variables are intended for use as a means to store data that is
passed between the EFI environment implemented in the platform and EFI OS loaders and other
applications that run in the EFI environment.

Although the implementation of variable storage is not defined in this specification, variables must
be persistent in most cases. This implies that the EFI implementation on a platform must arrange it
so that variables passed in for storage are retained and available for use each time the system boots,
at least until they are explicitly deleted or overwritten. Provision of this type of nonvolatile storage
may be very limited on some platforms, so variables should be used sparingly in cases where other
means of communicating information cannot be used.

Table 6-1 lists the variable services functions described in this section:

Table 6-1.

Variable Services Functions

Name Type

Description

GetVariable

Runtime

Returns the value of a variable.

GetNextVariableName

Runtime

Enumerates the current variable names.

SetVariable

Runtime

Sets the value of a variable.

Advertising