cpuidle_remove_state_sysfs(9)
β¨ cpuidle_remove_state_sysfs(9) β¨
okay so bestie, welcome to the Kernel API Manual π this one's a little function with a big job β it's the cleanup crew for cpuidle state sysfs attributes, and honestly? we love a function that knows how to tidy up after itself π§Ήβ¨
πΈ NAME πΈ
cpuidle_remove_state_sysfs β removes the cpuidle states sysfs attributes π
π¦ SYNOPSIS π¦
void cpuidle_remove_state_sysfs (struct cpuidle_device *device );
it's giving "void, no return value, no drama" β¨ no cap, that's the whole signature β a struct cpuidle_device * and nothing else π
π ARGUMENTS π
deviceβ the target device π literally just the device you're cleaning up the state sysfs attributes for. that's it. that's the argument. main character energy fr fr π«Ά
π SEE ALSO π
if you're deep in the cpuidle sysfs lore (iykyk), you already know the whole squad π the Kernel file lives at ./drivers/cpuidle/sysfs.c and here's everyone else in the friend group:
cpuidle_add_interface(9)cpuidle_remove_interface(9)cpuidle_add_state_sysfs(9)cpuidle_add_driver_sysfs(9)cpuidle_remove_driver_sysfs(9)cpuidle_add_device_sysfs(9)cpuidle_remove_device_sysfs(9)cpuidle_add_sysfs(9)cpuidle_remove_sysfs(9)
like, cpuidle_add_state_sysfs is literally the mirror twin of this one β one adds, one removes, iconic symmetry honestly β
ok so real talk: this is the remove one, bestie. if you were looking for the add version, that's cpuidle_add_state_sysfs(9) β don't mix them up π
and that's the vibe check! π this page lives in the ./drivers/cpuidle directory, and the docs are dated October 2026 β so yeah, we're reading from the future, slay π°οΈβ¨ bye bestie, go remove those attributes responsibly πππ
π¦ 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