acpi_dev_uid_to_integer(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– acpi_dev_uid_to_integer(9) πŸ’–

okay bestie, welcome to the Kernel API Manual β€” yes we're reading kernel docs together, this is our bonding time now 🫢


✨ NAME ✨

acpi_dev_uid_to_integer β€” treat ACPI device _UID as integer

like, it takes the _UID thing and is all "you're a number now bestie" πŸ”₯


🌸 SYNOPSIS 🌸

int acpi_dev_uid_to_integer (struct acpi_device *adev , u64 *integer );

literally the whole signature, no cap. two args, one int coming back at you πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • adev β€” the ACPI device you're grabbing the _UID from πŸ‘‘
  • integer β€” the output buffer where the integer lands, that's its whole job 🫢

πŸ¦‹ DESCRIPTION πŸ¦‹

so the vibe here is: it considers _UID as integer and converts it to integer. that's it, that's the move. iconic honestly ✨

and it returns 0 on success, or negative error code otherwise. so like, check your return value, bestie, don't just assume 😭


πŸ’œ SEE ALSO πŸ’œ

the kernel file lives at ./drivers/acpi/utils.c and the whole friend group is:

go read them all, i'll wait πŸ’…πŸ’–


aaaand that's the page!! πŸŽ€ this little pearl came out of ./drivers/acpi, dated October 2026 β€” mwah, bye bestie, go convert some UIDs 🌈⭐

πŸ“¦ where this page comes from