acpi_dev_uid_to_integer(9)
π 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_UIDfrom π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:
acpi_handle_list_equal(9)acpi_handle_list_replace(9)acpi_handle_list_free(9)acpi_device_dep(9)acpi_evaluate_ost(9)acpi_handle_path(9)acpi_handle_printk(9)__acpi_handle_debug(9)acpi_evaluation_failure_warn(9)acpi_has_method(9)acpi_evaluate_ej0(9)acpi_evaluate_lck(9)acpi_evaluate_reg(9)acpi_evaluate_dsm(9)acpi_check_dsm(9)acpi_dev_found(9)acpi_dev_present(9)acpi_dev_get_next_match_dev(9)acpi_dev_get_first_match_dev(9)acpi_reduced_hardware(9)acpi_dev_is_video_device(9)acpi_match_platform_list(9)
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
- 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