FreeBSD/sys/contrib/dev/acpica/components/utilities/utxfinit.c
/*******************************************************************************
 *
 * FUNCTION:    AcpiInitializeSubsystem
 *
 * PARAMETERS:  None
 *
 * RETURN:      Status
 *
 * DESCRIPTION: Initializes all global variables. This is the first function
 *              called, so any early initialization belongs here.
 *
 ******************************************************************************/


Status

Initializes all global variables. This is the first function
called, so any early initialization belongs here.
Status Initializes all global variables . This is the first function called so any early initialization belongs here .
ACPI_STATUS
AcpiInitializeSubsystem (
    void)
{
    ACPI_STATUS             Status;
    ACPI_FUNCTION_TRACE (AcpiInitializeSubsystem);
    AcpiGbl_StartupFlags = ACPI_SUBSYSTEM_INITIALIZE;
    ACPI_DEBUG_EXEC (AcpiUtInitStackPtrTrace ());
    Status = AcpiOsInitialize ();
    if (ACPI_FAILURE (Status))
    {
        ACPI_EXCEPTION ((AE_INFO, Status, "During OSL initialization"));
        return_ACPI_STATUS (Status);
    }
    Status = AcpiUtInitGlobals ();
    if (ACPI_FAILURE (Status))
    {
        ACPI_EXCEPTION ((AE_INFO, Status, "During initialization of globals"));
        return_ACPI_STATUS (Status);
    }
    Status = AcpiUtMutexInitialize ();
    if (ACPI_FAILURE (Status))
    {
        ACPI_EXCEPTION ((AE_INFO, Status, "During Global Mutex creation"));
        return_ACPI_STATUS (Status);
    }
    Status = AcpiNsRootInitialize ();
    if (ACPI_FAILURE (Status))
    {
        ACPI_EXCEPTION ((AE_INFO, Status, "During Namespace initialization"));
        return_ACPI_STATUS (Status);
    }
    Status = AcpiUtInitializeInterfaces ();
    if (ACPI_FAILURE (Status))
    {
        ACPI_EXCEPTION ((AE_INFO, Status, "During OSI interfaces initialization"));
        return_ACPI_STATUS (Status);
    }
    return_ACPI_STATUS (AE_OK);
}
ACPI_STATUS AcpiInitializeSubsystem ( void ) { ACPI_STATUS Status ; ACPI_FUNCTION_TRACE ( AcpiInitializeSubsystem ) ; AcpiGbl_StartupFlags = ACPI_SUBSYSTEM_INITIALIZE ; ACPI_DEBUG_EXEC ( AcpiUtInitStackPtrTrace ( ) ) ; Status = AcpiOsInitialize ( ) ; if ( ACPI_FAILURE ( Status ) ) { ACPI_EXCEPTION ( ( AE_INFO , Status , " " ) ) ; return_ACPI_STATUS ( Status ) ; } Status = AcpiUtInitGlobals ( ) ; if ( ACPI_FAILURE ( Status ) ) { ACPI_EXCEPTION ( ( AE_INFO , Status , " " ) ) ; return_ACPI_STATUS ( Status ) ; } Status = AcpiUtMutexInitialize ( ) ; if ( ACPI_FAILURE ( Status ) ) { ACPI_EXCEPTION ( ( AE_INFO , Status , " " ) ) ; return_ACPI_STATUS ( Status ) ; } Status = AcpiNsRootInitialize ( ) ; if ( ACPI_FAILURE ( Status ) ) { ACPI_EXCEPTION ( ( AE_INFO , Status , " " ) ) ; return_ACPI_STATUS ( Status ) ; } Status = AcpiUtInitializeInterfaces ( ) ; if ( ACPI_FAILURE ( Status ) ) { ACPI_EXCEPTION ( ( AE_INFO , Status , " " ) ) ; return_ACPI_STATUS ( Status ) ; } return_ACPI_STATUS ( AE_OK ) ; }
FUNCTION:    AcpiInitializeSubsystem
 PARAMETERS:  None
FUNCTION : AcpiInitializeSubsystem PARAMETERS : None
/* Initialize the OS-Dependent layer */ /* Initialize all globals used by the subsystem */ /* Create the default mutex objects */ /*
     * Initialize the namespace manager and
     * the root of the namespace tree
     */ /* Initialize the global OSI interfaces list with the static names */