cpuidle_add_device_sysfs(9)
π cpuidle_add_device_sysfs β Kernel API Manual β¨
okay so bestie, welcome to the function that gives your cpuidle device its own little sysfs glow-up π the manual name for this one is literally Kernel API Manual, and it's serving very much "kernel internals but make it cute" energy. let's get into it π
πΈ NAME πΈ
cpuidle_add_device_sysfs β adds device specific sysfs attributes β¨
like, it literally adds sysfs attributes that are specific to the device. that's the whole vibe. no cap π«Ά
π SYNOPSIS π
int cpuidle_add_device_sysfs (struct cpuidle_device *device );
yes, it returns an int, and yes, there is one argument. iconic behavior honestly π
π¦ ARGUMENTS π¦
deviceβ the target device. that's it. that's the argument. she's the main character here π
π SEE ALSO π
the kernel file lives at ./drivers/cpuidle/sysfs.c β go read it if you're feeling nerdy, iykyk πβ¨
and here's the whole friend group, all the related calls you might want to check out:
cpuidle_add_interface(9)cpuidle_remove_interface(9)cpuidle_add_state_sysfs(9)cpuidle_remove_state_sysfs(9)cpuidle_add_driver_sysfs(9)cpuidle_remove_driver_sysfs(9)cpuidle_remove_device_sysfs(9)cpuidle_add_sysfs(9)cpuidle_remove_sysfs(9)
like a little sysfs friend group, all linked together fr fr π§π
ok that's the whole page bestie β short, sweet, and every single detail is still in there. slay πβ¨
and that's a wrap! π this one comes to you from ./drivers/cpuidle, dated October 2026, and it's the cpuidle_add_device_sysfs(9) page β 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