FreeBSD/sys/contrib/dev/acpica/components/namespace/nsobject.c
/*******************************************************************************
 *
 * FUNCTION:    AcpiNsGetAttachedData
 *
 * PARAMETERS:  Node            - Namespace node
 *              Handler         - Handler associated with the data
 *              Data            - Where the data is returned
 *
 * RETURN:      Status
 *
 * DESCRIPTION: Low level interface to obtain data previously associated with
 *              a namespace node.
 *
 ******************************************************************************/
AcpiNsGetAttachedData
PARAMETERS:  Node            - Namespace node
Handler         - Handler associated with the data
Data            - Where the data is returned

Status

Low level interface to obtain data previously associated with
a namespace node.
AcpiNsGetAttachedData PARAMETERS : Node - Namespace node Handler - Handler associated with the data Data - Where the data is returned Status Low level interface to obtain data previously associated with a namespace node .
ACPI_STATUS
AcpiNsGetAttachedData (
    ACPI_NAMESPACE_NODE     *Node,
    ACPI_OBJECT_HANDLER     Handler,
    void                    **Data)
{
    ACPI_OPERAND_OBJECT     *ObjDesc;
    ObjDesc = Node->Object;
    while (ObjDesc)
    {
        if ((ObjDesc->Common.Type == ACPI_TYPE_LOCAL_DATA) &&
            (ObjDesc->Data.Handler == Handler))
        {
            *Data = ObjDesc->Data.Pointer;
            return (AE_OK);
        }
        ObjDesc = ObjDesc->Common.NextObject;
    }
    return (AE_NOT_FOUND);
}
ACPI_STATUS AcpiNsGetAttachedData ( ACPI_NAMESPACE_NODE * Node , ACPI_OBJECT_HANDLER Handler , void * * Data ) { ACPI_OPERAND_OBJECT * ObjDesc ; ObjDesc = Node -> Object ; while ( ObjDesc ) { if ( ( ObjDesc -> Common . Type == ACPI_TYPE_LOCAL_DATA ) && ( ObjDesc -> Data . Handler == Handler ) ) { * Data = ObjDesc -> Data . Pointer ; return ( AE_OK ) ; } ObjDesc = ObjDesc -> Common . NextObject ; } return ( AE_NOT_FOUND ) ; }
FUNCTION:    AcpiNsGetAttachedData
 PARAMETERS:  Node            - Namespace node
              Handler         - Handler associated with the data
              Data            - Where the data is returned
FUNCTION : AcpiNsGetAttachedData PARAMETERS : Node - Namespace node Handler - Handler associated with the data Data - Where the data is returned