arm_cpuidle_init(9)
β¨ arm_cpuidle_init β¨
okay so bestie, welcome to the Kernel API Manual π this one's a lil function from the ARM kernel world and honestly she's doing a lot of quiet heavy lifting. let's get into it π«Ά
πΈ NAME πΈ
arm_cpuidle_init β literally just "Initialize cpuidle_ops for a specific cpu" π
π SYNOPSIS π
int arm_cpuidle_init (int cpu );
π¦ ARGUMENTS π¦
cpuβ the cpu that's getting initialized β¨ like, this is the one you're setting up, no cap
π DESCRIPTION π
so here's the vibe: arm_cpuidle_init initializes the cpuidle ops with the device for the cpu, and then it calls the cpu's idle initialization callback π§
ngl it can fail β if the underlying HW is not operational, this thing is not gonna have a good time π
that's the whole thing. short, sweet, main character energy π
π₯ RETURN π₯
she returns a whole lil bouquet of values depending on what went down π:
0β slay, success β¨-ENODEVβ it fails to find the cpu node in the device tree π-EOPNOTSUPPβ it does not find a registered and validcpuidle_opsfor this cpu π-ENOENTβ it fails to find an'enable-method'property π-ENXIOβ the HW reports a failure or a misconfiguration π-ENOMEMβ the HW report an memory allocation failure π
π§ SEE ALSO π§
- Kernel file
./arch/arm/kernel/cpuidle.c arm_cpuidle_simple_enter(9)arm_cpuidle_suspend(9)arm_cpuidle_get_ops(9)arm_cpuidle_read_ops(9)
go read those too, iykyk π
β and that's the page bestie!! this iconic lil number lives in ./arch/arm/kernel, it's dated October 2026, and it goes by arm_cpuidle_init(9) β periodt π
π
π¦ 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