TianoCore EDK2 master
Loading...
Searching...
No Matches
DiskImage.h File Reference
#include "HexEditor.h"

Go to the source code of this file.

Functions

EFI_STATUS HDiskImageInit (VOID)
 
EFI_STATUS HDiskImageCleanup (VOID)
 
EFI_STATUS HDiskImageBackup (VOID)
 
EFI_STATUS HDiskImageRead (IN CONST CHAR16 *DeviceName, IN UINTN Offset, IN UINTN Size, IN BOOLEAN Recover)
 
EFI_STATUS HDiskImageSave (IN CHAR16 *DeviceName, IN UINTN Offset, IN UINTN Size)
 

Detailed Description

Defines DiskImage - the view of the file that is visible at any point, as well as the event handlers for editing the file

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

Definition in file DiskImage.h.

Function Documentation

◆ HDiskImageBackup()

EFI_STATUS HDiskImageBackup ( VOID  )

Backup function for HDiskImage. Only a few fields need to be backup. This is for making the Disk buffer refresh as few as possible.

Return values
EFI_SUCCESSThe operation was successful.
EFI_OUT_OF_RESOURCESgST->ConOut of resources.

Definition at line 63 of file DiskImage.c.

◆ HDiskImageCleanup()

EFI_STATUS HDiskImageCleanup ( VOID  )

Cleanup function for HDiskImage.

Return values
EFI_SUCCESSThe operation was successful.

Definition at line 90 of file DiskImage.c.

◆ HDiskImageInit()

EFI_STATUS HDiskImageInit ( VOID  )

Initialization function for HDiskImage.

Return values
EFI_SUCCESSThe operation was successful.
EFI_LOAD_ERRORA load error occurred.

Definition at line 41 of file DiskImage.c.

◆ HDiskImageRead()

EFI_STATUS HDiskImageRead ( IN CONST CHAR16 *  DeviceName,
IN UINTN  Offset,
IN UINTN  Size,
IN BOOLEAN  Recover 
)

Read a disk from disk into HBufferImage.

Parameters
[in]DeviceNamefilename to read.
[in]OffsetThe offset.
[in]SizeThe size.
[in]Recoverif is for recover, no information print.
Return values
EFI_SUCCESSThe operation was successful.
EFI_OUT_OF_RESOURCESA memory allocation failed.
EFI_LOAD_ERRORA load error occurred.
EFI_INVALID_PARAMETERA parameter was invalid.

Definition at line 154 of file DiskImage.c.

◆ HDiskImageSave()

EFI_STATUS HDiskImageSave ( IN CHAR16 *  DeviceName,
IN UINTN  Offset,
IN UINTN  Size 
)

Save lines in HBufferImage to disk. NOT ALLOW TO WRITE TO ANOTHER DISK!!!!!!!!!

Parameters
[in]DeviceNameThe device name.
[in]OffsetThe offset.
[in]SizeThe size.
Return values
EFI_SUCCESSThe operation was successful.
EFI_OUT_OF_RESOURCESA memory allocation failed.
EFI_LOAD_ERRORA load error occurred.
EFI_INVALID_PARAMETERA parameter was invalid.

Definition at line 329 of file DiskImage.c.