sched_idle_set_state(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 the struct 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