acpi_of_match_device(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 πŸ‘€


πŸ“ 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