FreeBSD/sys/contrib/dev/acpica/components/events/evhandler.c
/*******************************************************************************
 *
 * FUNCTION:    AcpiEvFindRegionHandler
 *
 * PARAMETERS:  SpaceId         - The address space ID
 *              HandlerObj      - Head of the handler object list
 *
 * RETURN:      Matching handler object. NULL if space ID not matched
 *
 * DESCRIPTION: Search a handler object list for a match on the address
 *              space ID.
 *
 ******************************************************************************/
AcpiEvFindRegionHandler
PARAMETERS:  SpaceId         - The address space ID
HandlerObj      - Head of the handler object list

Matching handler object. NULL if space ID not matched

Search a handler object list for a match on the address
space ID.
AcpiEvFindRegionHandler PARAMETERS : SpaceId - The address space ID HandlerObj - Head of the handler object list Matching handler object . NULL if space ID not matched Search a handler object list for a match on the address space ID .
ACPI_OPERAND_OBJECT *
AcpiEvFindRegionHandler (
    ACPI_ADR_SPACE_TYPE     SpaceId,
    ACPI_OPERAND_OBJECT     *HandlerObj)
{
    while (HandlerObj)
    {
        if (HandlerObj->AddressSpace.SpaceId == SpaceId)
        {
            return (HandlerObj);
        }
        HandlerObj = HandlerObj->AddressSpace.Next;
    }
    return (NULL);
}
ACPI_OPERAND_OBJECT * AcpiEvFindRegionHandler ( ACPI_ADR_SPACE_TYPE SpaceId , ACPI_OPERAND_OBJECT * HandlerObj ) { while ( HandlerObj ) { if ( HandlerObj -> AddressSpace . SpaceId == SpaceId ) { return ( HandlerObj ) ; } HandlerObj = HandlerObj -> AddressSpace . Next ; } return ( NULL ) ; }
FUNCTION:    AcpiEvFindRegionHandler
 PARAMETERS:  SpaceId         - The address space ID
              HandlerObj      - Head of the handler object list
FUNCTION : AcpiEvFindRegionHandler PARAMETERS : SpaceId - The address space ID HandlerObj - Head of the handler object list
/* Walk the handler list for this device */ /* Same SpaceId indicates a handler is installed */ /* Next handler object */