charger_man...ister_extcon(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

charger_manager_register_extcon β€” bestie, this is the glow-up function that registers an extcon device so the kernel can actually hear what your charger cable is going through πŸŽ€


✨ SYNOPSIS ✨

int charger_manager_register_extcon (struct charger_manager *cm );

🫢 ARGUMENTS 🫢

  • cm β€” the Charger Manager that's out here representing the battery, main character energy fr πŸ’…

🌸 DESCRIPTION 🌸

okay so this function is literally the extcon liaison, no cap. It supports the EXTCON (External Connector) subsystem so we can detect the state of charger cables β€” the whole point being to enable or disable the charger (regulator) πŸ”₯

and like, on top of that, it also picks which charger cable gets to actually do the charging when there's a whole squad of external cables in the mix β€” chosen according to the policy of the H/W board, iykyk πŸ¦‹

so yeah. cable detection, charger on/off, cable selection by board policy. iconic behaviour honestly πŸ‘‘

πŸ’œ SEE ALSO πŸ’œ

Kernel file ./drivers/power/supply/charger-manager.c is out here tagging along with the whole friend group:


and that's the tea, bestie πŸ“ this one lives in ./drivers/power/supply, dated October 2026 β€” go off, kernel docs, periodt πŸ’…βœ¨

πŸ“¦ where this page comes from