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

Go to the source code of this file.

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

Definition in file NvVarsFileLib.h.

Function Documentation

◆ ConnectNvVarsToFileSystem()

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

Definition at line 27 of file NvVarsFileLib.c.

◆ UpdateNvVarsOnFileSystem()

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

Definition at line 68 of file NvVarsFileLib.c.