sched_idle_set_state(9)
β¨ sched_idle_set_state(9) β¨
okay so bestie, welcome to the Kernel API Manual, section 9 β yes we're in the kernel-functions section, we're literally built different here π
This little page is all about sched_idle_set_state, and it's short, it's sweet, and it absolutely ate.
π NAME π
sched_idle_set_state β record the idle state for the current CPU. that's it, that's the whole vibe. it writes down which idle state this CPU is chilling in rn π¦
πΈ SYNOPSIS πΈ
void sched_idle_set_state (struct cpuidle_state *idle_state );
no return value, no drama, just vibes and a pointer π«Ά
π ARGUMENTS π
idle_stateβ the state you wanna record. literally the state to record, bestie, it's giving "what it says on the tin" β¨ hand it thestruct cpuidle_state *of your dreams and it'll be the one on file for the current CPU.
π SEE ALSO π
- the kernel file
./kernel/sched/idle.cβ the source of truth, go read her π default_idle_call(9)β the default idle path π§cpuidle_idle_call(9)β the cpuidle flavor π₯
ngl this page is tiny, but tiny β skippable. every arg matters, periodt π
so that's the whole thing, no cap π β this page came from the ./kernel/sched corner of the kernel docs, dated October 2026, and it's sched_idle_set_state(9) signing off. mwah, go call it 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