TianoCore EDK2 master
Loading...
Searching...
No Matches
VarCheck.c
Go to the documentation of this file.
1
11#include "Variable.h"
12
28EFIAPI
30 IN VAR_CHECK_SET_VARIABLE_CHECK_HANDLER Handler
31 )
32{
33 EFI_STATUS Status;
34
35 AcquireLockOnlyAtBootTime (&mVariableModuleGlobal->VariableGlobal.VariableServicesLock);
37 ReleaseLockOnlyAtBootTime (&mVariableModuleGlobal->VariableGlobal.VariableServicesLock);
38
39 return Status;
40}
41
58EFIAPI
60 IN CHAR16 *Name,
61 IN EFI_GUID *Guid,
62 IN VAR_CHECK_VARIABLE_PROPERTY *VariableProperty
63 )
64{
65 EFI_STATUS Status;
66
67 AcquireLockOnlyAtBootTime (&mVariableModuleGlobal->VariableGlobal.VariableServicesLock);
68 Status = VarCheckLibVariablePropertySet (Name, Guid, VariableProperty);
69 ReleaseLockOnlyAtBootTime (&mVariableModuleGlobal->VariableGlobal.VariableServicesLock);
70
71 return Status;
72}
73
87EFIAPI
89 IN CHAR16 *Name,
90 IN EFI_GUID *Guid,
91 OUT VAR_CHECK_VARIABLE_PROPERTY *VariableProperty
92 )
93{
94 EFI_STATUS Status;
95
96 AcquireLockOnlyAtBootTime (&mVariableModuleGlobal->VariableGlobal.VariableServicesLock);
97 Status = VarCheckLibVariablePropertyGet (Name, Guid, VariableProperty);
98 ReleaseLockOnlyAtBootTime (&mVariableModuleGlobal->VariableGlobal.VariableServicesLock);
99
100 return Status;
101}
VOID ReleaseLockOnlyAtBootTime(IN EFI_LOCK *Lock)
Definition: VariableDxe.c:130
VOID AcquireLockOnlyAtBootTime(IN EFI_LOCK *Lock)
Definition: VariableDxe.c:108
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29
EFI_STATUS EFIAPI VarCheckVariablePropertySet(IN CHAR16 *Name, IN EFI_GUID *Guid, IN VAR_CHECK_VARIABLE_PROPERTY *VariableProperty)
Definition: VarCheck.c:59
EFI_STATUS EFIAPI VarCheckRegisterSetVariableCheckHandler(IN VAR_CHECK_SET_VARIABLE_CHECK_HANDLER Handler)
Definition: VarCheck.c:29
EFI_STATUS EFIAPI VarCheckVariablePropertyGet(IN CHAR16 *Name, IN EFI_GUID *Guid, OUT VAR_CHECK_VARIABLE_PROPERTY *VariableProperty)
Definition: VarCheck.c:88
EFI_STATUS EFIAPI VarCheckLibRegisterSetVariableCheckHandler(IN VAR_CHECK_SET_VARIABLE_CHECK_HANDLER Handler)
Definition: VarCheckLib.c:440
EFI_STATUS EFIAPI VarCheckLibVariablePropertySet(IN CHAR16 *Name, IN EFI_GUID *Guid, IN VAR_CHECK_VARIABLE_PROPERTY *VariableProperty)
Definition: VarCheckLib.c:483
EFI_STATUS EFIAPI VarCheckLibVariablePropertyGet(IN CHAR16 *Name, IN EFI_GUID *Guid, OUT VAR_CHECK_VARIABLE_PROPERTY *VariableProperty)
Definition: VarCheckLib.c:558
Definition: Base.h:213