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

Go to the source code of this file.

Functions

SHELL_STATUS DoDevTreeForHandle (IN CONST EFI_HANDLE TheHandle, IN CONST CHAR8 *Lang OPTIONAL, IN CONST BOOLEAN UseDevPaths, IN CONST UINTN IndentCharCount, IN CONST CHAR16 *HiiString)
 
SHELL_STATUS EFIAPI ShellCommandRunDevTree (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
 

Variables

STATIC CONST SHELL_PARAM_ITEM ParamList []
 

Detailed Description

Main file for DevTree shell Driver1 function.

(C) Copyright 2014-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 DevTree.c.

Function Documentation

◆ DoDevTreeForHandle()

SHELL_STATUS DoDevTreeForHandle ( IN CONST EFI_HANDLE  TheHandle,
IN CONST CHAR8 *Lang  OPTIONAL,
IN CONST BOOLEAN  UseDevPaths,
IN CONST UINTN  IndentCharCount,
IN CONST CHAR16 *  HiiString 
)

Display a tree starting from this handle.

Parameters
[in]TheHandleThe handle to start with.
[in]LangOptionally, a UEFI defined language code.
[in]UseDevPathsTRUE to display info from DevPath as identifiers. FALSE will use component name protocol instead.
[in]IndentCharCountHow many characters to indent (allows for recursion).
[in]HiiStringThe string from HII to use for output.
Return values
SHELL_SUCCESSThe operation was successful.

Definition at line 31 of file DevTree.c.

◆ ShellCommandRunDevTree()

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

Function for 'devtree' command.

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

Definition at line 144 of file DevTree.c.

Variable Documentation

◆ ParamList

Initial value:
= {
{ L"-d", TypeFlag },
{ L"-l", TypeValue },
{ NULL, TypeMax }
}
#define NULL
Definition: Base.h:319
@ TypeValue
A flag that has some data following it with a space (IE "-a 1").
Definition: ShellLib.h:700
@ TypeFlag
A flag that is present or not present only (IE "-a").
Definition: ShellLib.h:699

Definition at line 12 of file DevTree.c.