acpi_processor_evaluate_cst(9)
π 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 π₯
- Kernel file
./drivers/acpi/acpi_processor.c acpi_processor_claim_cst_control(9)combine_lpi_states(9)
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
- 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