powercap_unr...control_type(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 valid control_type instance. 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 🌈

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