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

Go to the source code of this file.

Functions

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

Variables

EFI_HANDLE mNvVarsFileLibFsHandle = NULL
 

Detailed Description

Save Non-Volatile Variables to a file system.

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

Definition in file NvVarsFileLib.c.

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.

Variable Documentation

◆ mNvVarsFileLibFsHandle

EFI_HANDLE mNvVarsFileLibFsHandle = NULL

Definition at line 13 of file NvVarsFileLib.c.