FreeBSD/sys/contrib/dev/acpica/components/debugger/dbfileio.c
/*******************************************************************************
 *
 * FUNCTION:    AcpiDbLoadTables
 *
 * PARAMETERS:  ListHead        - List of ACPI tables to load
 *
 * RETURN:      Status
 *
 * DESCRIPTION: Load ACPI tables from a previously constructed table list.
 *
 ******************************************************************************/
AcpiDbLoadTables
PARAMETERS:  ListHead        - List of ACPI tables to load

Status

Load ACPI tables from a previously constructed table list.
AcpiDbLoadTables PARAMETERS : ListHead - List of ACPI tables to load Status Load ACPI tables from a previously constructed table list .
ACPI_STATUS
AcpiDbLoadTables (
    ACPI_NEW_TABLE_DESC     *ListHead)
{
    ACPI_STATUS             Status;
    ACPI_NEW_TABLE_DESC     *TableListHead;
    ACPI_TABLE_HEADER       *Table;
    TableListHead = ListHead;
    while (TableListHead)
    {
        Table = TableListHead->Table;
        Status = AcpiLoadTable (Table);
        if (ACPI_FAILURE (Status))
        {
            if (Status == AE_ALREADY_EXISTS)
            {
                AcpiOsPrintf ("Table %4.4s is already installed\n",
                    Table->Signature);
            }
            else
            {
                AcpiOsPrintf ("Could not install table, %s\n",
                    AcpiFormatException (Status));
            }
            return (Status);
        }
        fprintf (stderr,
            "Acpi table [%4.4s] successfully installed and loaded\n",
            Table->Signature);
        TableListHead = TableListHead->Next;
    }
    return (AE_OK);
}
ACPI_STATUS AcpiDbLoadTables ( ACPI_NEW_TABLE_DESC * ListHead ) { ACPI_STATUS Status ; ACPI_NEW_TABLE_DESC * TableListHead ; ACPI_TABLE_HEADER * Table ; TableListHead = ListHead ; while ( TableListHead ) { Table = TableListHead -> Table ; Status = AcpiLoadTable ( Table ) ; if ( ACPI_FAILURE ( Status ) ) { if ( Status == AE_ALREADY_EXISTS ) { AcpiOsPrintf ( " \n " , Table -> Signature ) ; } else { AcpiOsPrintf ( " \n " , AcpiFormatException ( Status ) ) ; } return ( Status ) ; } fprintf ( stderr , " \n " , Table -> Signature ) ; TableListHead = TableListHead -> Next ; } return ( AE_OK ) ; }
FUNCTION:    AcpiDbLoadTables
 PARAMETERS:  ListHead        - List of ACPI tables to load
FUNCTION : AcpiDbLoadTables PARAMETERS : ListHead - List of ACPI tables to load
/* Load all ACPI tables in the list */