acpi_pptt_cpu_is_thread(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… acpi_pptt_cpu_is_thread(9) β€” a Kernel API Manual moment

okay so bestie, welcome to the Kernel API Manual entry for acpi_pptt_cpu_is_thread, and no cap, this one is a little cutie. it does exactly one thing and it does it slayfully: it tells you whether a given CPU is actually a thread. that's it. that's the vibe. πŸ¦‹


✨ NAME ✨

acpi_pptt_cpu_is_thread β€” Determine if CPU is a thread πŸ’–

literally the whole personality of this function, right there in the name. iykyk.


🌸 SYNOPSIS 🌸

int acpi_pptt_cpu_is_thread (unsigned int cpu );

yes bestie, that's the whole signature. int in, int out, one argument, zero drama. πŸŽ€


🧚 ARGUMENTS 🧚

  • cpu β€” the Kernel logical CPU number. like, which CPU are we even talking about here? that one. the logical one. not a physical thing, a kernel logical number, okay? important distinction, don't @ me. πŸ’…

πŸ‘‘ RETURN πŸ‘‘

the return value is giving very much "yes / no / excuse me":

  • 1 β€” it's a thread, bestie! πŸŽ‰ a thread!
  • 0 β€” not a thread. nope. not even a little. πŸ’€
  • -ENOENT β€” ok so this is the sad one 😭. you get this if the PPTT doesn't exist, OR the CPU cannot be found, OR the table revision isn't new enough. three whole reasons, one error code. we love efficiency (we don't, but go off).
fr fr though, if you see -ENOENT don't panic β€” it just means one of those three things happened. check your PPTT situation before you assume anything else. πŸ™ˆ

🫢 SEE ALSO 🫢

like, the whole friend group is here, and honestly? iconic lineup. all of these live in the Kernel file ./drivers/acpi/pptt.c 🌈:

that's a LOT of besties, and every single one of them is doing their own little job. main character energy all around. ⭐


and that's the whole page, babe. this one came to us from ./drivers/acpi, dated October 2026 β€” so like, mark your calendar, she's stamped and official. πŸ’œβœ¨ go forth and check your threads, bestie. πŸ§šβ€β™€οΈ

πŸ“¦ where this page comes from