62 Status =
gRT->GetVariable ((CHAR16 *)Name, (
EFI_GUID *)Guid,
NULL, &BufferSize, *Value);
63 if (Status != EFI_BUFFER_TOO_SMALL) {
71 ASSERT (*Value !=
NULL);
73 return EFI_OUT_OF_RESOURCES;
79 Status =
gRT->GetVariable ((CHAR16 *)Name, (
EFI_GUID *)Guid,
NULL, &BufferSize, *Value);
80 if (EFI_ERROR (Status)) {
122 OUT UINT32 *Attr OPTIONAL
143 Status =
gRT->GetVariable ((CHAR16 *)Name, (
EFI_GUID *)Guid, Attr, &BufferSize, *Value);
144 if (Status != EFI_BUFFER_TOO_SMALL) {
152 ASSERT (*Value !=
NULL);
153 if (*Value ==
NULL) {
154 return EFI_OUT_OF_RESOURCES;
160 Status =
gRT->GetVariable ((CHAR16 *)Name, (
EFI_GUID *)Guid, Attr, &BufferSize, *Value);
161 if (EFI_ERROR (Status)) {
200 return GetVariable2 (Name, &gEfiGlobalVariableGuid, Value, Size);
VOID EFIAPI FreePool(IN VOID *Buffer)
EFI_RUNTIME_SERVICES * gRT
EFI_STATUS EFIAPI GetEfiGlobalVariable2(IN CONST CHAR16 *Name, OUT VOID **Value, OUT UINTN *Size OPTIONAL)
EFI_STATUS EFIAPI GetVariable2(IN CONST CHAR16 *Name, IN CONST EFI_GUID *Guid, OUT VOID **Value, OUT UINTN *Size OPTIONAL)
EFI_STATUS EFIAPI GetVariable3(IN CONST CHAR16 *Name, IN CONST EFI_GUID *Guid, OUT VOID **Value, OUT UINTN *Size OPTIONAL, OUT UINT32 *Attr OPTIONAL)
VOID *EFIAPI AllocatePool(IN UINTN AllocationSize)