dtpm_release_zone(9)
π dtpm_release_zone(9) π
okay so this is a page from the Kernel API Manual bestie, and today's main character is dtpm_release_zone β the cleanup girlie of the DTPM world π§Ήβ¨
β¨ NAME β¨
dtpm_release_zone β the cleanup that happens when the node gets released π«Ά
π SYNOPSIS π
int dtpm_release_zone (struct powercap_zone *pcz );
π¦ ARGUMENTS π¦
pczβ a pointer to apowercap_zonestructure π (that's the node we're tidying up, iykyk)
πΈ DESCRIPTION πΈ
So like, this is where we do some housecleaning and update the weight on the tree π³β¨ lowkey essential maintenance vibes.
β οΈ bestie listen β the release will be denied if the node has children π no cap. You can't just dip and leave your kids behind, that's not giving responsible parent energy.
This function must be called by the specific release callback of the different backends. Like, that's the rule, periodt π
π₯ RETURN π₯
0on success β slay, we're done here π-EBUSYif there are children β nope, can't release, the kids are still here π
π SEE ALSO π
Kernel file ./drivers/powercap/dtpm.c plus the whole friend group:
and that's the page fr fr π«Ά this little icon lives over in ./drivers/powercap, dated October 2026, and it goes by dtpm_release_zone(9) β mwah, go clean up your tree bestie ππβ
π¦ 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