acpi_dev_hid_uid_match(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME πŸ’…

acpi_dev_hid_uid_match β€” ok so this one matches a device by the HID and UID you hand it ✨


πŸŽ€ SYNOPSIS πŸŽ€

acpi_dev_hid_uid_match (adev , hid2 , uid2 );

🌸 ARGUMENTS 🌸

  • adev β€” the ACPI device you're trying to match. the main character of this function fr 🫢
  • hid2 β€” the Hardware ID of the device. yep, that's the HID.
  • uid2 β€” the Unique ID of the device. and here's the slay: pass NULL if you don't wanna check _UID at all πŸ’…

πŸ¦‹ DESCRIPTION πŸ¦‹

So what it does is it matches the HID and the UID inside adev against the hid2 and uid2 you gave it. iconic behaviour honestly.

And listen β€” the absence of uid2 gets treated as a match. like, no uid2? cool, we're not checking, you're good, no cap πŸ”₯

Heads up bestie: if you actually do wanna validate uid2, you gotta do that before you call this function. this one is not doing it for you, periodt.

⭐ RETURN ⭐

  • true if it matches, or if uid2 is NULL πŸ’–
  • false otherwise πŸ’€

🌈 SEE ALSO 🌈

like, go read those too, they're lowkey part of the same friend group 🧚


and that's the whole page mwah πŸ’œ this little masterpiece lives in ./include/acpi, it's from the Kernel API Manual, dated October 2026, and it's literally called acpi_dev_hid_uid_match(9) β€” go off bestie, you ate πŸ“βœ¨

πŸ“¦ where this page comes from