validate_cmdline_cstate(9)
π validate_cmdline_cstate(9) β Kernel API Manual π
okay so bestie, welcome to the Kernel API Manual page for validate_cmdline_cstate. This one is literally about validating a C-state from cmdline, and it's giving very specific, very iconic energy. πβ¨
πΈ NAME πΈ
validate_cmdline_cstate β Validate a C-state from cmdline. No cap, that's the whole vibe. π
π¦ SYNOPSIS π¦
int validate_cmdline_cstate (struct cpuidle_state *state , struct cpuidle_state *prev_state );
β ARGUMENTS β
stateβ The C-state to validate. This is the main character C-state you're checking. πprev_stateβ The previous C-state in the table orNULL. So either it has a neighbor in the table, or it's solo withNULL. π«Ά
π₯ RETURN π₯
0 if the C-state is valid or -EINVAL otherwise. That's it, bestie: valid gives you 0, not valid gives you -EINVAL. Periodt. π
π SEE ALSO π
Kernel file ./drivers/idle/intel_idle.c plus these iconic functions:
intel_idle(9)intel_idle_s2idle(9)intel_idle_cst_usable(9)ivt_idle_state_table_update(9)irtl_2_usec(9)bxt_idle_state_table_update(9)sklh_idle_state_table_update(9)skx_is_pc6_disabled(9)skx_idle_state_table_update(9)spr_idle_state_table_update(9)drop_pc6_redundant_cstates(9)byt_cht_auto_demotion_disable(9)intel_idle_cpuidle_driver_init(9)intel_idle_cpu_init(9)intel_idle_cpuidle_devices_uninit(9)cmdline_table_adjust(9)
source/version: ./drivers/idle Β· date: October 2026 Β· manual: validate_cmdline_cstate(9) β byeee, drink water and validate your C-states responsibly πβ¨π¦
π¦ 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