powercap_unr...control_type(9)
β¨ powercap_unregister_control_type(9) β the Kernel API Manual era π
okay so bestie, welcome to the Kernel API Manual page for powercap_unregister_control_type(9) β yes the header is that long, yes it's iconic, and yes we're gonna get through it together π«Ά
πΈ NAME πΈ
powercap_unregister_control_type β literally just unregisters a control_type from the framework, that's the whole vibe π
π¦ SYNOPSIS π¦
int powercap_unregister_control_type (struct powercap_control_type *instance );
π ARGUMENTS π
instanceβ a pointer to a validcontrol_typeinstance. like, it has to be valid, bestie, don't be out here passing garbage π
π₯ DESCRIPTION π₯
So what this one does is it unregisters a control_type with the power capping class β¨ simple as that.
BUT β and this is the part where you need to pay attention, no cap β all power zones registered under this control type have to be unregistered before calling this function, otherwise it will fail with an error code π like it's not gonna be cute about it, it's just gonna fail on you. so clean up your zones first, bestie, then come back. order matters, periodt π
π SEE ALSO π
- Kernel file
./include/linux/powercap.h struct powercap_control_type_ops(9)struct powercap_control_type(9)struct powercap_zone_ops(9)struct powercap_zone(9)struct powercap_zone_constraint_ops(9)struct powercap_zone_constraint(9)powercap_set_zone_data(9)powercap_get_zone_data(9)powercap_register_control_type(9)powercap_register_zone(9)powercap_unregister_zone(9)
the whole friend group fr fr, go read them all π
ngl this one's short but the warning is load-bearing. unregister your zones first or it's giving error code energy π
sign-off time π§ this little masterpiece lives in ./include/linux and it's dated October 2026, so go forth and unregister responsibly, my main character ππ
π¦ 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