power_supply_put(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay so this is the power_supply_put(9) page, bestie β€” straight out of the Kernel API Manual β€” and it's literally about dropping a reference you got with power_supply_get_by_name πŸ’….


✨ SYNOPSIS ✨

void power_supply_put (struct power_supply *psy );

that's the whole signature, no cap ✨


πŸŽ€ ARGUMENTS πŸŽ€

  • psy β€” Reference to put. That's the reference you're putting down, bestie. 🫢

🌸 DESCRIPTION 🌸

okay so the vibe check here is timing: the reference to power supply should be put before unregistering the power supply. That's it. That's the whole rule. Don't be out here unregistering first and then trying to put the reference β€” the manual says put it before, periodt πŸ’€.

careful, bestie: it says should, so this is a real timing note, not a suggestion to freestyle 🫢

πŸ¦‹ SEE ALSO πŸ¦‹


mwah πŸ’– this page's source/version is ./drivers/power/supply, it's dated October 2026, and yes bestie, we were reading power_supply_put(9) the whole time. bye 🫢🌈

πŸ“¦ where this page comes from