acpi_get_cpu_uid(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ NAME πŸŽ€

acpi_get_cpu_uid(9) is the page title, and it lives in the Kernel API Manual β€” manual name folded in near the top, bestie, no header line copy-paste needed πŸ’–

The function itself is acpi_get_cpu_uid, and the official one-liner is literally: Get ACPI Processor UID of from MADT table. Yes, β€œof from” is in there; we are preserving the original’s little quirk, no edits, periodt.


✨ SYNOPSIS ✨

int acpi_get_cpu_uid (unsigned int cpu , u32 *uid );

That’s the whole signature, character-for-character, no remix 🫢


πŸ’… ARGUMENTS πŸ’…

  • cpu β€” Logical CPU number (0-based). Like the CPU’s lil index, bestie.
  • uid β€” Pointer to store ACPI Processor UID. This is where the UID gets parked.

🫢 RETURN 🫢

Here’s the return vibe check:

  • 0 on success (ACPI Processor ID stored in *uid). Slay.
  • -EINVAL if CPU number is invalid or out of range. Not the vibe.
  • -ENODEV if ACPI Processor UID for the CPU is not found. Literally missing.

🌈 SEE ALSO 🌈

The original points you at:


okay bye ily πŸ’– cute little sign-off: this page’s source/version is ./include/linux, it’s dated October 2026, and we’re still talking about acpi_get_cpu_uid(9) β€” no cap, that’s the footer folded in πŸŽ€βœ¨

πŸ“¦ where this page comes from