MdeModulePkg[all]  0.98
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
VariableLock.h File Reference

Data Structures

struct  _EDKII_VARIABLE_LOCK_PROTOCOL
 

Macros

#define EDKII_VARIABLE_LOCK_PROTOCOL_GUID
 

Typedefs

typedef struct
_EDKII_VARIABLE_LOCK_PROTOCOL 
EDKII_VARIABLE_LOCK_PROTOCOL
 
typedef IN CHAR16 * VariableName
 
typedef IN CHAR16 IN EFI_GUID * VendorGuid
 

Functions

typedef EFI_STATUS (EFIAPI *EDKII_VARIABLE_LOCK_PROTOCOL_REQUEST_TO_LOCK)(IN CONST EDKII_VARIABLE_LOCK_PROTOCOL *This
 

Variables

EFI_GUID gEdkiiVariableLockProtocolGuid
 

Detailed Description

Variable Lock Protocol is related to EDK II-specific implementation of variables and intended for use as a means to mark a variable read-only after the event EFI_END_OF_DXE_EVENT_GUID is signaled.

Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Macro Definition Documentation

#define EDKII_VARIABLE_LOCK_PROTOCOL_GUID
Value:
{ \
0xcd3d0a05, 0x9e24, 0x437c, { 0xa8, 0x91, 0x1e, 0xe0, 0x53, 0xdb, 0x76, 0x38 } \
}

Typedef Documentation

typedef IN CHAR16* VariableName
typedef IN CHAR16 IN EFI_GUID* VendorGuid

Function Documentation

typedef EFI_STATUS ( EFIAPI *  EDKII_VARIABLE_LOCK_PROTOCOL_REQUEST_TO_LOCK)

Mark a variable that will become read-only after leaving the DXE phase of execution. Write request coming from SMM environment through EFI_SMM_VARIABLE_PROTOCOL is allowed.

Parameters
[in]ThisThe EDKII_VARIABLE_LOCK_PROTOCOL instance.
[in]VariableNameA pointer to the variable name that will be made read-only subsequently.
[in]VendorGuidA pointer to the vendor GUID that will be made read-only subsequently.
Return values
EFI_SUCCESSThe variable specified by the VariableName and the VendorGuid was marked as pending to be read-only.
EFI_INVALID_PARAMETERVariableName or VendorGuid is NULL. Or VariableName is an empty string.
EFI_ACCESS_DENIEDEFI_END_OF_DXE_EVENT_GROUP_GUID or EFI_EVENT_GROUP_READY_TO_BOOT has already been signaled.
EFI_OUT_OF_RESOURCESThere is not enough resource to hold the lock request.

Variable Documentation

EFI_GUID gEdkiiVariableLockProtocolGuid