Function uacpi_for_each_subtable

uacpi_status uacpi_for_each_subtable(struct acpi_sdt_hdr* hdr, size_t hdr_size, uacpi_subtable_iteration_callback cb, void * user)

Description

Iterate every subtable of a table such as MADT or SRAT.

'hdr' is the pointer to the main table, 'hdr_size' is the number of bytes in the table before the beginning of the subtable records. 'cb' is the callback invoked for each subtable with the 'user' context pointer passed for every invocation. Example usage: uacpi_table tbl; uacpi_table_find_by_signature(ACPI_MADT_SIGNATURE, &tbl); uacpi_for_each_subtable( tbl.hdr, sizeof(struct acpi_madt), parse_madt, NULL );