TianoCore EDK2 master
Loading...
Searching...
No Matches
FwVolWrite.c File Reference
#include "DxeMain.h"
#include "FwVolDriver.h"

Go to the source code of this file.

Functions

EFI_STATUS EFIAPI FvWriteFile (IN CONST EFI_FIRMWARE_VOLUME2_PROTOCOL *This, IN UINT32 NumberOfFiles, IN EFI_FV_WRITE_POLICY WritePolicy, IN EFI_FV_WRITE_FILE_DATA *FileData)
 

Detailed Description

Implements functions to write firmware file

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

Definition in file FwVolWrite.c.

Function Documentation

◆ FvWriteFile()

EFI_STATUS EFIAPI FvWriteFile ( IN CONST EFI_FIRMWARE_VOLUME2_PROTOCOL This,
IN UINT32  NumberOfFiles,
IN EFI_FV_WRITE_POLICY  WritePolicy,
IN EFI_FV_WRITE_FILE_DATA FileData 
)

Writes one or more files to the firmware volume.

Parameters
ThisIndicates the calling context.
NumberOfFilesNumber of files.
WritePolicyWritePolicy indicates the level of reliability for the write in the event of a power failure or other system failure during the write operation.
FileDataFileData is an pointer to an array of EFI_FV_WRITE_DATA. Each element of array FileData represents a file to be written.
Return values
EFI_SUCCESSFiles successfully written to firmware volume
EFI_OUT_OF_RESOURCESNot enough buffer to be allocated.
EFI_DEVICE_ERRORDevice error.
EFI_WRITE_PROTECTEDWrite protected.
EFI_NOT_FOUNDNot found.
EFI_INVALID_PARAMETERInvalid parameter.
EFI_UNSUPPORTEDThis function not supported.

Definition at line 35 of file FwVolWrite.c.