apm_cpu_idle(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ apm_cpu_idle(9) ✨

okay so bestie, welcome to apm_cpu_idle(9) β€” the kernel API manual page you didn't know you needed 🫢 this is the tea on cpu idling for APM capable Linux, and yes it's as niche as it sounds and yes we're gonna get through it together πŸ’…


🌸 NAME 🌸

apm_cpu_idle β€” cpu idling for APM capable Linux

like, literally what it says on the tin ✨


πŸŽ€ SYNOPSIS πŸŽ€

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

three args, one int coming back at you, no cap 🧚


πŸ’– ARGUMENTS πŸ’–

okay so the docs are lowkey giving nothing here, but here's the roster:

  • dev β€” -- undescribed -- πŸ™ˆ the manual really said "figure it out yourself" for this one
  • drv β€” -- undescribed -- 😭 same energy, bestie
  • index β€” -- undescribed -- πŸ’€ yeah… all three are officially undescribed, not me making that up, that's literally what the page says
ngl this section is giving mystery box 🎁 but we respect the honesty

πŸ”₯ DESCRIPTION πŸ”₯

This is the idling function the kernel executes when APM is available. 🫑

It tries to do BIOS powermanagement based on the average system idle time. πŸ‘‘ iconic behaviour honestly

Furthermore it calls the system default idle routine. 🌈 so it's doing the APM thing and the regular thing, main character energy fr fr


πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./arch/x86/kernel/apm_32.c β€” and here's the whole friend group, no one left behind πŸ’œ:


πŸ“ little sign-off from your girl: this page lives under ./arch/x86/kernel and it's dated October 2026 β€” go read the whole squad, they're all waiting for you. stay idle, stay slay πŸ’…βœ¨
πŸ“¦ where this page comes from