acpi_match_acpi_device(9)
π acpi_match_acpi_device β the Kernel API Manual glow-up you didn't know you needed
okay bestie, so this one lives in the Kernel API Manual, and honestly? she's short, she's sweet, and she does exactly one thing. iconic behaviour, no notes. β¨
πΈ NAME πΈ
acpi_match_acpi_device β literally just matching an ACPI device against a given list of ACPI IDs. that's the whole vibe. π
π¦ SYNOPSIS π¦
const struct acpi_device_id * acpi_match_acpi_device (const struct acpi_device_id *ids , const struct acpi_device *adev );
like, look at her go. two args, one pointer back out. clean. π
β¨ ARGUMENTS β¨
idsβ the array ofstruct acpi_device_idobjects you're matching against. this is the roster, the guest list, the lineup. πadevβ the ACPI device pointer that's getting matched. she's the one walking up to the door going "am I on the list?" π
π DESCRIPTION π
Match the ACPI device adev against a given list of ACPI IDs ids. that's it, that's the function. no cap. π«Ά
π RETURN π
on success you get a pointer to the first matching ACPI ID β first one wins, bestie, no ties, no drama. on failure you get NULL, which is the kernel's way of saying "she's not on the list, sorry babe." π
π 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_device(9)acpi_bus_find_device_by_name(9)acpi_early_init(9)acpi_subsystem_init(9)
go read the whole friend group, they're all lowkey serving. ππ
and that's the page, bestie!! this little icon came from ./drivers/acpi, October 2026 edition, and she's out here living her best life in the Kernel API Manual. mwah. πππ¦β
π¦ 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