acpi_processor_evaluate_cst(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… acpi_processor_evaluate_cst(9) β€” the Kernel API Manual, bestie edition

okay so this one lives in the Kernel API Manual, section 9 (that's the kernel-functions girlies ✨), and it's literally the function that goes and asks a processor what nap positions it's got available. iconic behaviour honestly.


✨ NAME ✨

acpi_processor_evaluate_cst β€” evaluate the processor _CST control method. that's it, that's the whole vibe πŸŽ€


🌸 SYNOPSIS 🌸

int acpi_processor_evaluate_cst(acpi_handle handle, u32 cpu,
                                struct acpi_processor_power *info);

so you hand it three things and it hands you back an int. slay.


πŸ¦‹ ARGUMENTS πŸ¦‹

  • handle β€” the ACPI handle of the processor object that's holding the _CST. like, the house where the C-state info lives 🏠
  • cpu β€” the numeric ID of the target CPU. yes it's just a number, no it's not optional, it's giving "which sibling are we talking about" energy πŸ™ˆ
  • info β€” the object you want the C-states information written into. it's the little container that gets filled up 🫢

πŸ‘‘ DESCRIPTION πŸ‘‘

so what it does is: it extracts the C-state information for the given CPU out of the output of the _CST control method that lives under the corresponding ACPI processor object (or processor device object, same energy) and then populates info with it. literally fills it in for you, no cap ✨

and then β€” and this is the part where it gets kind of main character β€” if any ACPI_ADR_SPACE_FIXED_HARDWARE C-states show up in there, it invokes acpi_processor_ffh_cstate_probe to verify them, and updates the cpu_cstate_entry data for cpu. so it's not just copying, it's checking and updating. highkey thorough πŸ’…


πŸ”₯ SEE ALSO πŸ”₯

go read the whole family, iykyk 🌈


fr fr if you're poking at CPU idle states in ACPI land, this is your girl. take the info struct seriously β€” she's writing into it πŸ’–

that's the whole page, bestie!! πŸŽ€ this cutie came out of ./drivers/acpi and it's dated October 2026 β€” mwah, catch you on the next one πŸ¦‹πŸ’œ

πŸ“¦ where this page comes from