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

Go to the source code of this file.

Functions

UINTN EFIAPI ShellDumpBufferToFile (IN CONST CHAR16 *FileNameBuffer, IN CONST VOID *Buffer, IN CONST UINTN BufferSize)
 
SHELL_STATUS EFIAPI ShellCommandRunAcpiView (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
 

Detailed Description

Library providing 'acpiview' functionality to display and validate installed ACPI tables.

Copyright (c) 2016 - 2020, ARM Limited. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file AcpiViewCommandLib.h.

Function Documentation

◆ ShellCommandRunAcpiView()

SHELL_STATUS EFIAPI ShellCommandRunAcpiView ( IN EFI_HANDLE  ImageHandle,
IN EFI_SYSTEM_TABLE SystemTable 
)

Display and validate ACPI tables.

Parameters
[in]ImageHandleHandle to the Image (NULL if internal).
[in]SystemTablePointer to the System Table (NULL if internal).
Return values
SHELL_INVALID_PARAMETERThe command line invocation could not be parsed.
SHELL_NOT_FOUNDThe command failed.
SHELL_SUCCESSThe command was successful.

Function for 'acpiview' command.

Parameters
[in]ImageHandleHandle to the Image (NULL if internal).
[in]SystemTablePointer to the System Table (NULL if internal).
Return values
SHELL_INVALID_PARAMETERThe command line invocation could not be parsed
SHELL_NOT_FOUNDThe command failed
SHELL_SUCCESSThe command was successful

Definition at line 202 of file UefiShellAcpiViewCommandLib.c.

◆ ShellDumpBufferToFile()

UINTN EFIAPI ShellDumpBufferToFile ( IN CONST CHAR16 *  FileNameBuffer,
IN CONST VOID *  Buffer,
IN CONST UINTN  BufferSize 
)

Dump a buffer to a file. Print error message if a file cannot be created.

Parameters
[in]FileNameThe filename that shall be created to contain the buffer.
[in]BufferPointer to buffer that shall be dumped.
[in]BufferSizeThe size of buffer to be dumped in bytes.
Returns
The number of bytes that were written

Definition at line 129 of file UefiShellAcpiViewCommandLib.c.