TianoCore EDK2 master
Loading...
Searching...
No Matches
AmlClone.c File Reference
#include <AmlNodeDefines.h>
#include <AmlCoreInterface.h>
#include <Tree/AmlNode.h>
#include <Tree/AmlTree.h>

Go to the source code of this file.

Functions

EFI_STATUS EFIAPI AmlCloneNode (IN AML_NODE_HEADER *Node, OUT AML_NODE_HEADER **ClonedNode)
 
EFI_STATUS EFIAPI AmlCloneTree (IN AML_NODE_HEADER *Node, OUT AML_NODE_HEADER **ClonedNode)
 

Detailed Description

AML Clone.

Copyright (c) 2019 - 2020, Arm Limited. All rights reserved.

SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file AmlClone.c.

Function Documentation

◆ AmlCloneNode()

EFI_STATUS EFIAPI AmlCloneNode ( IN AML_NODE_HEADER Node,
OUT AML_NODE_HEADER **  ClonedNode 
)

Clone a node.

This function does not clone the children nodes. The cloned node returned is not attached to any tree.

Parameters
[in]NodePointer to a node.
[out]ClonedNodePointer holding the cloned node.
Return values
EFI_SUCCESSThe function completed successfully.
EFI_INVALID_PARAMETERInvalid parameter.
EFI_OUT_OF_RESOURCESCould not allocate memory.

Definition at line 29 of file AmlClone.c.

◆ AmlCloneTree()

EFI_STATUS EFIAPI AmlCloneTree ( IN AML_NODE_HEADER Node,
OUT AML_NODE_HEADER **  ClonedNode 
)

Clone a node and its children (clone a tree branch).

The cloned branch returned is not attached to any tree.

Parameters
[in]NodePointer to a node. Node is the head of the branch to clone.
[out]ClonedNodePointer holding the head of the created cloned branch.
Return values
EFI_SUCCESSThe function completed successfully.
EFI_INVALID_PARAMETERInvalid parameter.
EFI_OUT_OF_RESOURCESCould not allocate memory.

Definition at line 102 of file AmlClone.c.