powercap_get_zone_data(9)
π NAME π
powercap_get_zone_data β bestie, this is literally how you get the private data for a zone π«Ά
β¨ SYNOPSIS β¨
void * powercap_get_zone_data (struct powercap_zone *power_zone );
π ARGUMENTS π
power_zoneβ okay so this is a pointer to the valid zone instance. Valid being the key word, queen π β a valid zone instance, please and thank you.
πΈ DESCRIPTION πΈ
So here's the vibe: this function lets client drivers get the private data that's associated with a zone, and the way that data got there in the first place is via a call to powercap_set_zone_data. Set it, get it. It's giving symmetry, it's giving main character energy π
π¦ 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_register_control_type(9)powercap_unregister_control_type(9)powercap_register_zone(9)powercap_unregister_zone(9)
Like, go read all of them, iykyk π₯
okay that's the whole page, no cap π this little icon lives in ./include/linux, it's the October 2026 edition of powercap_get_zone_data(9), and it's part of the Kernel API Manual β slay, bye 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