acpi_of_match_device(9)
β¨ acpi_of_match_device β¨
okay so bestie, welcome to the kernel API manual for acpi_of_match_device β yes that's acpi_of_match_device(9), section 9, we're in the deep kernel lore today π
π NAME π
acpi_of_match_device β literally matches a device object using the "compatible" property π¦
πΈ SYNOPSIS πΈ
bool acpi_of_match_device (const struct acpi_device *adev , const struct
of_device_id *of_match_table , const struct of_device_id **of_id );
π ARGUMENTS π
adevβ the ACPI device object you wanna match, bestie π«Άof_match_tableβ the list of device IDs we're matching against β¨of_idβ the OF ID, but only if it actually matched π
π§ DESCRIPTION π§
okay so here's the tea β β if dev has an ACPI companion, and that companion has ACPI_DT_NAMESPACE_HID in its list of identifiers, and it's got a _DSD object with the "compatible" property? then we use that property to match against the given list of identifiers. that's the whole vibe check, no cap π
π₯ SEE ALSO π₯
kernel file ./drivers/acpi/bus.c β go read it, iykyk π
acpi_bus_notify(9)devm_acpi_install_notify_handler(9)acpi_bus_get_primary_device(9)acpi_get_first_physical_node(9)acpi_device_is_first_physical_node(9)acpi_set_modalias(9)acpi_match_acpi_device(9)acpi_match_device(9)acpi_bus_find_device_by_name(9)acpi_early_init(9)acpi_subsystem_init(9)
π little sign-off from your girl: this page lives under ./drivers/acpi, dated October 2026, and it's giving iconic kernel documentation energy β periodt ππ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms