charger_extcon_work(9)
π charger_extcon_work(9) β like, the Kernel API Manual, bestie
Okay so welcome to the glow-up of charger_extcon_work(9) β¨ this one lives in the Kernel API Manual and honestly? She's short, she's sweet, she's giving "one job and she does it" energy. Let's get into it π
πΈ NAME πΈ
charger_extcon_work β turns the charger on / off depending on what state the charger cable is in π¦
ngl the original spells it "enable/diable" and I am not about to edit the sacred text π so there it is, typo and all, periodt.
β SYNOPSIS β
void charger_extcon_work (struct work_struct *work );
That's it. That's the whole signature. No return value, she returns void, she's unbothered π
π«Ά ARGUMENTS π«Ά
workβ thework_structof the functioncharger_extcon_work. That's the vibe: one argument, onework_struct, no notes π
π SEE ALSO π
First up, the kernel file herself:
./drivers/power/supply/charger-manager.c π
and then the whole friend group, in this exact order, no cap:
is_batt_present(9)is_ext_pwr_online(9)get_batt_uV(9)is_charging(9)is_full_charged(9)is_polling_required(9)try_charger_enable(9)check_charging_duration(9)cm_get_target_status(9)_cm_monitor(9)cm_monitor(9)_setup_polling(9)cm_monitor_poller(9)cm_setup_timer(9)charger_extcon_notifier(9)charger_extcon_init(9)charger_manager_register_extcon(9)charger_manager_prepare_sysfs(9)
Like, the entire charger-manager squad came to the function's birthday party πβ¨ iykyk
Okay that's the whole page, go touch grass or read charger-manager.c, your call π±
Sign-off time π«Ά this cutie is filed under ./drivers/power/supply, dated October 2026, and answers to the name charger_extcon_work(9). slay π
π¦ 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