OvmfPkg[all]  0.1
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
NvVarsFileLib.h File Reference

Functions

EFI_STATUS EFIAPI ConnectNvVarsToFileSystem (IN EFI_HANDLE FsHandle)
 
EFI_STATUS EFIAPI UpdateNvVarsOnFileSystem ()
 

Detailed Description

Provides functions to save and restore NV variables in a file.

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

Function Documentation

EFI_STATUS EFIAPI ConnectNvVarsToFileSystem ( IN EFI_HANDLE  FsHandle)

Attempts to connect the NvVarsFileLib to the specified file system.

Parameters
[in]FsHandle- Handle for a gEfiSimpleFileSystemProtocolGuid instance
Returns
The EFI_STATUS while attempting to connect the NvVarsFileLib to the file system instance.
Return values
EFI_SUCCESS- The given file system was connected successfully
EFI_STATUS EFIAPI UpdateNvVarsOnFileSystem ( )

Update non-volatile variables stored on the file system.

Returns
The EFI_STATUS while attempting to update the variable on the connected file system.
Return values
EFI_SUCCESS- The non-volatile variables were saved to the disk
EFI_NOT_STARTED- A file system has not been connected