__cpuidle_get_cpu_driver(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… __cpuidle_get_cpu_driver(9) β€” the Kernel API Manual, bestie edition πŸŽ€

okay so welcome to the <pink>__cpuidle_get_cpu_driver</pink> page, straight out of the Kernel API Manual. it's short, it's sweet, and it's literally just "gimme the driver pointer." let's get into it ✨


✨ NAME ✨

__cpuidle_get_cpu_driver β€” return the global cpuidle driver pointer. that's the whole job. no cap 🫢


🌸 SYNOPSIS 🌸

struct cpuidle_driver * __cpuidle_get_cpu_driver (int cpu );

so you call it with an int cpu, and it hands you back a struct cpuidle_driver *. simple as that, babe πŸ’–


πŸ¦‹ ARGUMENTS πŸ¦‹

  • cpu β€” lowkey ignored unless you've got the multiple driver support going on. otherwise it's just... there. sitting pretty. doing nothing πŸ™ˆ

⭐ DESCRIPTION ⭐

it returns a pointer to a struct cpuidle_driver object. and if no driver was previously registered? you get NULL. that's it, that's the whole vibe check πŸ‘‘

like, <mint>the way that</mint> this function is just a getter and refuses to elaborate? main character energy fr fr. πŸ’…

heads up bestie: NULL is a real possible return here, so don't go dereferencing it without checking. no thoughts head empty = segfault city 😭

🌈 SEE ALSO 🌈

kernel file ./drivers/cpuidle/driver.c β€” go read it, iykyk πŸ“–

then the whole friend group:


and that's the page, bestie πŸ“ this little gem lives in ./drivers/cpuidle, and the manual's dated October 2026 β€” so go forth, get your driver pointer, and slay πŸ’œπŸ§šβ€β™€οΈ

πŸ“¦ where this page comes from