FreeBSD/sys/contrib/dev/acpica/components/namespace/nsobject.c
/*******************************************************************************
 *
 * FUNCTION:    AcpiNsGetAttachedObject
 *
 * PARAMETERS:  Node             - Namespace node
 *
 * RETURN:      Current value of the object field from the Node whose
 *              handle is passed
 *
 * DESCRIPTION: Obtain the object attached to a namespace node.
 *
 ******************************************************************************/
AcpiNsGetAttachedObject
PARAMETERS:  Node             - Namespace node

Current value of the object field from the Node whose
handle is passed

Obtain the object attached to a namespace node.
AcpiNsGetAttachedObject PARAMETERS : Node - Namespace node Current value of the object field from the Node whose handle is passed Obtain the object attached to a namespace node .
ACPI_OPERAND_OBJECT *
AcpiNsGetAttachedObject (
    ACPI_NAMESPACE_NODE     *Node)
{
    ACPI_FUNCTION_TRACE_PTR (NsGetAttachedObject, Node);
    if (!Node)
    {
        ACPI_WARNING ((AE_INFO, "Null Node ptr"));
        return_PTR (NULL);
    }
    if (!Node->Object ||
            ((ACPI_GET_DESCRIPTOR_TYPE (Node->Object) != ACPI_DESC_TYPE_OPERAND) &&
             (ACPI_GET_DESCRIPTOR_TYPE (Node->Object) != ACPI_DESC_TYPE_NAMED))  ||
        ((Node->Object)->Common.Type == ACPI_TYPE_LOCAL_DATA))
    {
        return_PTR (NULL);
    }
    return_PTR (Node->Object);
}
ACPI_OPERAND_OBJECT * AcpiNsGetAttachedObject ( ACPI_NAMESPACE_NODE * Node ) { ACPI_FUNCTION_TRACE_PTR ( NsGetAttachedObject , Node ) ; if ( ! Node ) { ACPI_WARNING ( ( AE_INFO , " " ) ) ; return_PTR ( NULL ) ; } if ( ! Node -> Object || ( ( ACPI_GET_DESCRIPTOR_TYPE ( Node -> Object ) != ACPI_DESC_TYPE_OPERAND ) && ( ACPI_GET_DESCRIPTOR_TYPE ( Node -> Object ) != ACPI_DESC_TYPE_NAMED ) ) || ( ( Node -> Object ) -> Common . Type == ACPI_TYPE_LOCAL_DATA ) ) { return_PTR ( NULL ) ; } return_PTR ( Node -> Object ) ; }
FUNCTION:    AcpiNsGetAttachedObject
 PARAMETERS:  Node             - Namespace node
FUNCTION : AcpiNsGetAttachedObject PARAMETERS : Node - Namespace node