FreeBSD/sys/contrib/dev/acpica/components/debugger/dbtest.c
/*******************************************************************************
 *
 * FUNCTION:    AcpiDbEvaluateAllPredefinedNames
 *
 * PARAMETERS:  CountArg            - Max number of methods to execute
 *
 * RETURN:      None
 *
 * DESCRIPTION: Namespace batch execution. Execute predefined names in the
 *              namespace, up to the max count, if specified.
 *
 ******************************************************************************/
AcpiDbEvaluateAllPredefinedNames
PARAMETERS:  CountArg            - Max number of methods to execute

None

Namespace batch execution. Execute predefined names in the
namespace, up to the max count, if specified.
AcpiDbEvaluateAllPredefinedNames PARAMETERS : CountArg - Max number of methods to execute None Namespace batch execution . Execute predefined names in the namespace up to the max count if specified .
static void
AcpiDbEvaluateAllPredefinedNames (
    char                    *CountArg)
{
    ACPI_DB_EXECUTE_WALK    Info;
    Info.Count = 0;
    Info.MaxCount = ACPI_UINT32_MAX;
    if (CountArg)
    {
        Info.MaxCount = strtoul (CountArg, NULL, 0);
    }
    (void) AcpiWalkNamespace (ACPI_TYPE_ANY, ACPI_ROOT_OBJECT,
        ACPI_UINT32_MAX, AcpiDbEvaluateOnePredefinedName, NULL,
        (void *) &Info, NULL);
    AcpiOsPrintf (
        "Evaluated %u predefined names in the namespace\n", Info.Count);
}
static void AcpiDbEvaluateAllPredefinedNames ( char * CountArg ) { ACPI_DB_EXECUTE_WALK Info ; Info . Count = 0 ; Info . MaxCount = ACPI_UINT32_MAX ; if ( CountArg ) { Info . MaxCount = strtoul ( CountArg , NULL , 0 ) ; } ( void ) AcpiWalkNamespace ( ACPI_TYPE_ANY , ACPI_ROOT_OBJECT , ACPI_UINT32_MAX , AcpiDbEvaluateOnePredefinedName , NULL , ( void * ) & Info , NULL ) ; AcpiOsPrintf ( " \n " , Info . Count ) ; }
FUNCTION:    AcpiDbEvaluateAllPredefinedNames
 PARAMETERS:  CountArg            - Max number of methods to execute
FUNCTION : AcpiDbEvaluateAllPredefinedNames PARAMETERS : CountArg - Max number of methods to execute
/* Search all nodes in namespace */