![Intel Extensible Firmware Interface Specification Download Page 98](http://html1.mh-extra.com/html/intel/extensible-firmware-interface/extensible-firmware-interface_specification_2073117098.webp)
Extensible Firmware Interface Specification
80
12/12/00
Version 1.02
3.5.2 GetNextVariableName()
Summary
Enumerates the current variable names.
Prototype
EFI_STATUS
GetNextVariableName (
IN OUT UINTN
*VariableNameSize,
IN OUT CHAR16
*VariableName,
IN OUT EFI_GUID
*VendorGuid
);
Parameters
VariableNameSize
The size of the
VariableName
buffer.
VariableName
On input, supplies the last
VariableName
that was returned
by
GetNextVariableName()
. On output, returns the Null-
terminated Unicode string of the current variable.
VendorGuid
On input, supplies the last
VendorGuid
that was returned by
GetNextVariableName()
. On output, returns the
VendorGuid
of the current variable. Type
EFI_GUID
is
defined in Section 3.3.1.
Description
GetNextVariableName()
is called multiple times to retrieve the
VariableName
and
VendorGuid
of all variables currently available in the system. On each call to
GetNextVariableName()
the previous results are passed into the interface, and on output the
interface returns the next variable name data. When the entire variable list has been returned, the
error
EFI_NOT_FOUND
is returned.
Note that if
EFI_BUFFER_TOO_SMALL
is returned, the
VariableName
buffer was too small
for the next variable. When such an error occurs, the
VariableNameSize
is updated to reflect
the size of buffer needed. In all cases when calling
GetNextVariableName()
the
VariableNameSize
must not exceed the actual buffer size that was allocated for
VariableName
.
To start the search, a Null-terminated string is passed in
VariableName
; that is,
VariableName
is a pointer to a Null Unicode character. This is always done on the initial call to
GetNextVariableName()
. When
VariableName
is a pointer to a Null Unicode character,
VendorGuid
is ignored.
GetNextVariableName()
cannot be used as a filter to return
variable names with a specific GUID. Instead, the entire list of variables must be retrieved, and the
caller may act as a filter if it chooses. Calls to
SetVariable()
between calls to
GetNextVariableName()
may produce unpredictable results.
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...