TianoCore EDK2 master
|
#include "Variable.h"
Go to the source code of this file.
Functions | |
EFI_STATUS | FlushPendingRuntimeVariableCacheUpdates (VOID) |
EFI_STATUS | SynchronizeRuntimeVariableCache (IN VARIABLE_RUNTIME_CACHE *VariableRuntimeCache, IN UINTN Offset, IN UINTN Length) |
The common variable volatile store routines shared by the DXE_RUNTIME variable module and the DXE_SMM variable module.
Copyright (c) 2019, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file VariableRuntimeCache.h.
EFI_STATUS FlushPendingRuntimeVariableCacheUpdates | ( | VOID | ) |
Copies any pending updates to runtime variable caches.
EFI_UNSUPPORTED | The volatile store to be updated is not initialized properly. |
EFI_SUCCESS | The volatile store was updated successfully. |
Definition at line 29 of file VariableRuntimeCache.c.
EFI_STATUS SynchronizeRuntimeVariableCache | ( | IN VARIABLE_RUNTIME_CACHE * | VariableRuntimeCache, |
IN UINTN | Offset, | ||
IN UINTN | Length | ||
) |
Synchronizes the runtime variable caches with all pending updates outside runtime.
Ensures all conditions are met to maintain coherency for runtime cache updates. This function will attempt to write the given update (and any other pending updates) if the ReadLock is available. Otherwise, the update is added as a pending update for the given variable store and it will be flushed to the runtime cache at the next opportunity the ReadLock is available.
[in] | VariableRuntimeCache | Variable runtime cache structure for the runtime cache being synchronized. |
[in] | Offset | Offset in bytes to apply the update. |
[in] | Length | Length of data in bytes of the update. |
EFI_SUCCESS | The update was added as a pending update successfully. If the variable runtime cache ReadLock was available, the runtime cache was updated successfully. |
EFI_UNSUPPORTED | The volatile store to be updated is not initialized properly. |
Definition at line 114 of file VariableRuntimeCache.c.