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

Go to the source code of this file.

Functions

EFI_STATUS TraverseHandleDatabase (IN CONST EFI_HANDLE TheHandle)
 
SHELL_STATUS EFIAPI ShellCommandRunOpenInfo (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
 

Variables

STATIC CONST CHAR16 StringHandProt [] = L"HandProt "
 
STATIC CONST CHAR16 StringGetProt [] = L"GetProt "
 
STATIC CONST CHAR16 StringTestProt [] = L"TestProt "
 
STATIC CONST CHAR16 StringChild [] = L"Child "
 
STATIC CONST CHAR16 StringDriver [] = L"Driver "
 
STATIC CONST CHAR16 StringExclusive [] = L"Exclusive"
 
STATIC CONST CHAR16 StringDriverEx [] = L"DriverEx "
 
STATIC CONST CHAR16 StringUnknown [] = L"Unknown "
 

Detailed Description

Main file for OpenInfo shell Driver1 function.

(C) Copyright 2015 Hewlett-Packard Development Company, L.P.
Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file OpenInfo.c.

Function Documentation

◆ ShellCommandRunOpenInfo()

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

Function for 'openinfo' command.

Parameters
[in]ImageHandleHandle to the Image (NULL if Internal).
[in]SystemTablePointer to the System Table (NULL if Internal).

Definition at line 161 of file OpenInfo.c.

◆ TraverseHandleDatabase()

EFI_STATUS TraverseHandleDatabase ( IN CONST EFI_HANDLE  TheHandle)

Open the database and print out all the info about TheHandle.

Parameters
[in]TheHandleThe handle to print info on.
Return values
EFI_SUCCESSThe operation was successful.
EFI_INVALID_PARAMETERTheHandle was NULL.
EFI_OUT_OF_RESOURCESA memory allocation failed.

Definition at line 31 of file OpenInfo.c.

Variable Documentation

◆ StringChild

STATIC CONST CHAR16 StringChild[] = L"Child "

Definition at line 15 of file OpenInfo.c.

◆ StringDriver

STATIC CONST CHAR16 StringDriver[] = L"Driver "

Definition at line 16 of file OpenInfo.c.

◆ StringDriverEx

STATIC CONST CHAR16 StringDriverEx[] = L"DriverEx "

Definition at line 18 of file OpenInfo.c.

◆ StringExclusive

STATIC CONST CHAR16 StringExclusive[] = L"Exclusive"

Definition at line 17 of file OpenInfo.c.

◆ StringGetProt

STATIC CONST CHAR16 StringGetProt[] = L"GetProt "

Definition at line 13 of file OpenInfo.c.

◆ StringHandProt

STATIC CONST CHAR16 StringHandProt[] = L"HandProt "

Definition at line 12 of file OpenInfo.c.

◆ StringTestProt

STATIC CONST CHAR16 StringTestProt[] = L"TestProt "

Definition at line 14 of file OpenInfo.c.

◆ StringUnknown

STATIC CONST CHAR16 StringUnknown[] = L"Unknown "

Definition at line 19 of file OpenInfo.c.