acpi_match_device(9)
π acpi_match_device β the acpi_match_device(9) page, but make it make sense
okay bestie, welcome to the kernel API manual, section 9, and today's main character is acpi_match_device. it's a kernel function, it lives in ./drivers/acpi, and it's about to match a struct device against a list of ACPI IDs. no cap. let's go π
β¨ NAME β¨
acpi_match_device β literally what it says on the tin: match a struct device against a given list of ACPI IDs π¦
πΈ SYNOPSIS πΈ
const struct acpi_device_id * acpi_match_device (const struct acpi_device_id *ids , const struct device *dev );
like, that's the whole vibe right there π
π§ ARGUMENTS π§
idsβ the array ofstruct acpi_device_idobjects you're matching against. this is your candidate list, your roster, your lineup πdevβ the device structure that's getting matched. the one being vibe-checked π«Ά
π₯ DESCRIPTION π₯
so here's the tea, bestie π
it checks if dev has a valid ACPI handle, and then it checks if there's a struct acpi_device object for that handle β and then it uses that object to match against a given list of device IDs. yes, that's the whole arc. it's giving "look it up, then compare" energy and honestly? iconic π
and the return situation: it returns a pointer to the first matching ID on success, or NULL on failure. that's it. that's the deal. π
π SEE ALSO π
- Kernel file
./drivers/acpi/bus.c 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_of_match_device(9)acpi_set_modalias(9)acpi_match_acpi_device(9)acpi_bus_find_device_by_name(9)acpi_early_init(9)acpi_subsystem_init(9)
ok so that's the whole page!! every single thing is still here, i promise, i would never do you like that π the source is./drivers/acpi, the date is October 2026, and this was brought to you by the Kernel API Manual, pageacpi_match_device(9)β periodt. πβ¨
go read the whole SEE ALSO list, bestie, i believe in you π§ββοΈπ
π¦ 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