cpuidle_enter_state(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ cpuidle_enter_state β€” enter the state and update stats ✨

okay so bestie, this is a Kernel API Manual page (section 9, the kernel-API girlies πŸ’…) and it's about cpuidle_enter_state. That's it. That's the whole vibe. Let's get into it 🫢


🌸 NAME 🌸

cpuidle_enter_state β€” the function that enters the state and updates the stats ✨

Like, it literally does both things. Enters. And updates. No cap.


πŸ¦‹ SYNOPSIS πŸ¦‹

noinstr int cpuidle_enter_state (struct cpuidle_device *dev , struct
       cpuidle_driver *drv , int index );

so it takes three args, returns an int, and it's marked noinstr β€” that's the whole signature, noinstr included, don't come for me 😌


πŸŽ€ ARGUMENTS πŸŽ€

  • dev β€” the cpuidle device for this cpu. Like, this cpu's device, specifically. Not somebody else's. Main character energy only πŸ’…
  • drv β€” the cpuidle driver for this cpu. Same deal: this cpu's driver, periodt.
  • index β€” an index into the states table in drv of the state to enter πŸ‘‘ so like, it's the index-th entry of the states table that lives inside drv, and that's the state you're going into. iykyk.

πŸ’– SEE ALSO πŸ’–

first of all, the kernel file this lives in (per the page):

./drivers/cpuidle/cpuidle.c

and then the whole friend group, fr fr β€” every single one of these is referenced:

like, that's the entire cpuidle cinematic universe and honestly? obsessed πŸ’€πŸ’–


ok that's genuinely everything this page says β€” no extra lore, no invented behavior, I'm not out here making things up πŸ™ˆ

that's the page, bestie πŸ’œ this one lives in the directory ./drivers/cpuidle, it's dated October 2026, and yes it's the cpuidle_enter_state(9) page from the Kernel API Manual β€” go forth and enter those states, slay πŸ’…βœ¨πŸ¦‹

πŸ“¦ where this page comes from