MdeModulePkg[all]
0.98
|
Data Structures | |
struct | VAR_CHECK_VARIABLE_PROPERTY |
struct | VARIABLE_ENTRY_PROPERTY |
struct | _EDKII_VAR_CHECK_PROTOCOL |
Macros | |
#define | EDKII_VAR_CHECK_PROTOCOL_GUID |
#define | VAR_CHECK_VARIABLE_PROPERTY_REVISION 0x0001 |
#define | VAR_CHECK_VARIABLE_PROPERTY_READ_ONLY BIT0 |
Typedefs | |
typedef struct _EDKII_VAR_CHECK_PROTOCOL | EDKII_VAR_CHECK_PROTOCOL |
typedef EFI_SET_VARIABLE | VAR_CHECK_SET_VARIABLE_CHECK_HANDLER |
typedef IN EFI_GUID * | Guid |
typedef IN EFI_GUID IN VAR_CHECK_VARIABLE_PROPERTY * | VariableProperty |
Functions | |
typedef | EFI_STATUS (EFIAPI *EDKII_VAR_CHECK_REGISTER_SET_VARIABLE_CHECK_HANDLER)(IN VAR_CHECK_SET_VARIABLE_CHECK_HANDLER Handler) |
Variables | |
EFI_GUID | gEdkiiVarCheckProtocolGuid |
Variable check definitions.
Copyright (c) 2015, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
#define EDKII_VAR_CHECK_PROTOCOL_GUID |
#define VAR_CHECK_VARIABLE_PROPERTY_READ_ONLY BIT0 |
#define VAR_CHECK_VARIABLE_PROPERTY_REVISION 0x0001 |
typedef struct _EDKII_VAR_CHECK_PROTOCOL EDKII_VAR_CHECK_PROTOCOL |
typedef IN EFI_GUID * Guid |
typedef EFI_SET_VARIABLE VAR_CHECK_SET_VARIABLE_CHECK_HANDLER |
typedef IN EFI_GUID OUT VAR_CHECK_VARIABLE_PROPERTY * VariableProperty |
typedef EFI_STATUS | ( | EFIAPI * | EDKII_VAR_CHECK_VARIABLE_PROPERTY_GET | ) |
Register SetVariable check handler. Variable driver will call the handler to do check before really setting the variable into variable storage.
[in] | Handler | Pointer to the check handler. |
EFI_SUCCESS | The SetVariable check handler was registered successfully. |
EFI_INVALID_PARAMETER | Handler is NULL. |
EFI_ACCESS_DENIED | EFI_END_OF_DXE_EVENT_GROUP_GUID or EFI_EVENT_GROUP_READY_TO_BOOT has already been signaled. |
EFI_OUT_OF_RESOURCES | There is not enough resource for the SetVariable check handler register request. |
EFI_UNSUPPORTED | This interface is not implemented. For example, it is unsupported in VarCheck protocol if both VarCheck and SmmVarCheck protocols are present. |
Variable property set. Variable driver will do check according to the VariableProperty before really setting the variable into variable storage.
[in] | Name | Pointer to the variable name. |
[in] | Guid | Pointer to the vendor GUID. |
[in] | VariableProperty | Pointer to the input variable property. |
EFI_SUCCESS | The property of variable specified by the Name and Guid was set successfully. |
EFI_INVALID_PARAMETER | Name, Guid or VariableProperty is NULL, or Name is an empty string, or the fields of VariableProperty are not valid. |
EFI_ACCESS_DENIED | EFI_END_OF_DXE_EVENT_GROUP_GUID or EFI_EVENT_GROUP_READY_TO_BOOT has already been signaled. |
EFI_OUT_OF_RESOURCES | There is not enough resource for the variable property set request. |
Variable property get.
[in] | Name | Pointer to the variable name. |
[in] | Guid | Pointer to the vendor GUID. |
[out] | VariableProperty | Pointer to the output variable property. |
EFI_SUCCESS | The property of variable specified by the Name and Guid was got successfully. |
EFI_INVALID_PARAMETER | Name, Guid or VariableProperty is NULL, or Name is an empty string. |
EFI_NOT_FOUND | The property of variable specified by the Name and Guid was not found. |
EFI_GUID gEdkiiVarCheckProtocolGuid |