acpi_dev_hid_uid_match(9)
π 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: passNULLif you don't wanna check_UIDat 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 β
trueif it matches, or ifuid2isNULLπfalseotherwise π
π SEE ALSO π
- Kernel file
./include/acpi/acpi_bus.hstruct acpi_device_software_node_port(9)- struct
acpi_device_software_nodes(9) acpi_dev_uid_match(9)for_each_acpi_consumer_dev(9)for_each_acpi_dev_match(9)
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
- 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