EDK2 doxygen online documents - Firmware Encoding Index 1
EDK2 doxygen online documents - Firmware Encoding Index
Functions

ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/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 - 2011, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at http://opensource.org/licenses/bsd-license.php

THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.

Definition in file DiskImage.h.


Function Documentation

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 69 of file DiskImage.c.

EFI_STATUS HDiskImageCleanup ( VOID  )

Cleanup function for HDiskImage.

Return values:
EFI_SUCCESSThe operation was successful.

Definition at line 96 of file DiskImage.c.

EFI_STATUS HDiskImageInit ( VOID  )

Initialization function for HDiskImage.

Return values:
EFI_SUCCESSThe operation was successful.
EFI_LOAD_ERRORA load error occured.

Definition at line 47 of file DiskImage.c.

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 occured.
EFI_INVALID_PARAMETERA parameter was invalid.

Definition at line 165 of file DiskImage.c.

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 occured.
EFI_INVALID_PARAMETERA parameter was invalid.

Definition at line 343 of file DiskImage.c.

 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Defines