FreeBSD/sys/contrib/dev/acpica/components/executer/exstore.c
/*******************************************************************************
 *
 * FUNCTION:    AcpiExStoreDirectToNode
 *
 * PARAMETERS:  SourceDesc              - Value to be stored
 *              Node                    - Named object to receive the value
 *              WalkState               - Current walk state
 *
 * RETURN:      Status
 *
 * DESCRIPTION: "Store" an object directly to a node. This involves a copy
 *              and an attach.
 *
 ******************************************************************************/
AcpiExStoreDirectToNode
PARAMETERS:  SourceDesc              - Value to be stored
Node                    - Named object to receive the value
WalkState               - Current walk state

Status

"Store" an object directly to a node. This involves a copy
and an attach.
AcpiExStoreDirectToNode PARAMETERS : SourceDesc - Value to be stored Node - Named object to receive the value WalkState - Current walk state Status " Store " an object directly to a node . This involves a copy and an attach .
static ACPI_STATUS
AcpiExStoreDirectToNode (
    ACPI_OPERAND_OBJECT     *SourceDesc,
    ACPI_NAMESPACE_NODE     *Node,
    ACPI_WALK_STATE         *WalkState)
{
    ACPI_STATUS             Status;
    ACPI_OPERAND_OBJECT     *NewDesc;
    ACPI_FUNCTION_TRACE (ExStoreDirectToNode);
    ACPI_DEBUG_PRINT ((ACPI_DB_EXEC,
        "Storing [%s] (%p) directly into node [%s] (%p)"
        " with no implicit conversion\n",
        AcpiUtGetObjectTypeName (SourceDesc), SourceDesc,
        AcpiUtGetTypeName (Node->Type), Node));
    Status = AcpiUtCopyIobjectToIobject (SourceDesc, &NewDesc, WalkState);
    if (ACPI_FAILURE (Status))
    {
        return_ACPI_STATUS (Status);
    }
    Status = AcpiNsAttachObject (Node, NewDesc, NewDesc->Common.Type);
    AcpiUtRemoveReference (NewDesc);
    return_ACPI_STATUS (Status);
}
static ACPI_STATUS AcpiExStoreDirectToNode ( ACPI_OPERAND_OBJECT * SourceDesc , ACPI_NAMESPACE_NODE * Node , ACPI_WALK_STATE * WalkState ) { ACPI_STATUS Status ; ACPI_OPERAND_OBJECT * NewDesc ; ACPI_FUNCTION_TRACE ( ExStoreDirectToNode ) ; ACPI_DEBUG_PRINT ( ( ACPI_DB_EXEC , " " " \n " , AcpiUtGetObjectTypeName ( SourceDesc ) , SourceDesc , AcpiUtGetTypeName ( Node -> Type ) , Node ) ) ; Status = AcpiUtCopyIobjectToIobject ( SourceDesc , & NewDesc , WalkState ) ; if ( ACPI_FAILURE ( Status ) ) { return_ACPI_STATUS ( Status ) ; } Status = AcpiNsAttachObject ( Node , NewDesc , NewDesc -> Common . Type ) ; AcpiUtRemoveReference ( NewDesc ) ; return_ACPI_STATUS ( Status ) ; }
FUNCTION:    AcpiExStoreDirectToNode
 PARAMETERS:  SourceDesc              - Value to be stored
              Node                    - Named object to receive the value
              WalkState               - Current walk state
FUNCTION : AcpiExStoreDirectToNode PARAMETERS : SourceDesc - Value to be stored Node - Named object to receive the value WalkState - Current walk state
/* Copy the source object to a new object */ /* Attach the new object to the node */