power_allocator_bind(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… power_allocator_bind(9) ✨

Okay so bestie, welcome to the Kernel API Manual β€” this is a (9) page, aka kernel-API territory, and today's main character is power_allocator_bind. Buckle up πŸŽ€


🌸 NAME 🌸

power_allocator_bind β€” the way you bind the power_allocator governor to a thermal zone, periodt πŸ’…


✨ SYNOPSIS ✨

int power_allocator_bind (struct thermal_zone_device *tz );

That's the whole vibe. One function, one pointer, no drama πŸ¦‹


🫢 ARGUMENTS 🫢

  • tz β€” the thermal zone you're binding it to. That's it, that's the argument, she's a simple icon πŸ‘‘

πŸ’– DESCRIPTION πŸ’–

So what does she actually do? She initializes the PID controller parameters and then binds the whole thing to the thermal zone you handed her. Lowkey iconic, highkey essential 🧚✨

No cap, that's the entire job: init the PID parameters, bind to the tz, done πŸŽ€


πŸ”₯ RETURN πŸ”₯

Here's the vibe check on what you get back πŸ‘‡

  • 0 β€” slay, it worked, success πŸŽ‰
  • -ENOMEM β€” you ran out of memory 😭 the allocation said "not today"
  • -EINVAL β€” there are unsupported cooling devices in the tz. Yeah, she checked, and she's not dealing with that πŸ™ˆ

πŸ‘€ SEE ALSO πŸ‘€

Bestie, there's a whole friend group, iykyk πŸ’œ

Kernel file ./drivers/thermal/gov_power_allocator.c, plus:


Fr fr that's the page 🫢 this little gem lives in ./drivers/thermal, dated October 2026, and it's filed under power_allocator_bind(9) β€” see you in the group chat, bestie πŸ’–βœ¨

πŸ“¦ where this page comes from