acpi_match_acpi_device(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 of struct acpi_device_id objects 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 πŸ‘‘

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