/* * Get the header in order to get signature and table size */ 
/* Get the header in order to get signature and table size */  
acpi_tb_get_primary_table (	struct acpi_pointer             *address,	struct acpi_table_desc          *table_info){	acpi_status                     status;	struct acpi_table_header        header;	ACPI_FUNCTION_TRACE ("tb_get_primary_table");	/* Ignore a NULL address in the RSDT */	if (!address->pointer.value) {		return_ACPI_STATUS (AE_OK);	}	/*	 * Get the header in order to get signature and table size	 */	status = acpi_tb_get_table_header (address, &header);	if (ACPI_FAILURE (status)) {		return_ACPI_STATUS (status);	}	/* Clear the table_info */	ACPI_MEMSET (table_info, 0, sizeof (struct acpi_table_desc));	/*	 * Check the table signature and make sure it is recognized.	 * Also checks the header checksum	 */	table_info->pointer = &header;	status = acpi_tb_recognize_table (table_info, ACPI_TABLE_PRIMARY);	if (ACPI_FAILURE (status)) {		return_ACPI_STATUS (status);	}	/* Get the entire table */	status = acpi_tb_get_table_body (address, &header, table_info);	if (ACPI_FAILURE (status)) {		return_ACPI_STATUS (status);	}	/* Install the table */	status = acpi_tb_install_table (table_info);	return_ACPI_STATUS (status);}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/44f6c01242da4e162f28d8e1216a8c7a91174605/tbgetall.c/clean/drivers/acpi/tables/tbgetall.c