TianoCore EDK2 master
Loading...
Searching...
No Matches
VariableLock.h File Reference

Go to the source code of this file.

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 EFI_STATUS(EFIAPI * EDKII_VARIABLE_LOCK_PROTOCOL_REQUEST_TO_LOCK) (IN CONST EDKII_VARIABLE_LOCK_PROTOCOL *This, IN CHAR16 *VariableName, IN EFI_GUID *VendorGuid)
 

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

Definition in file VariableLock.h.

Macro Definition Documentation

◆ EDKII_VARIABLE_LOCK_PROTOCOL_GUID

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

Definition at line 14 of file VariableLock.h.

Typedef Documentation

◆ EDKII_VARIABLE_LOCK_PROTOCOL

◆ EDKII_VARIABLE_LOCK_PROTOCOL_REQUEST_TO_LOCK

typedef EFI_STATUS(EFIAPI * EDKII_VARIABLE_LOCK_PROTOCOL_REQUEST_TO_LOCK) (IN CONST EDKII_VARIABLE_LOCK_PROTOCOL *This, IN CHAR16 *VariableName, IN EFI_GUID *VendorGuid)

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.

Definition at line 38 of file VariableLock.h.