validate_cmdline_cstate(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 or NULL. So either it has a neighbor in the table, or it's solo with NULL. 🫢

πŸ”₯ 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:


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