ab8500_charg...r_connection(9)
π ab8500_chargalg_check_charger_connection(9) β aka "the charger connection vibe check" π
okay so bestie, welcome to the Kernel API Manual β¨ we're deep in the ab8500 charge algorithm source today and honestly? it's giving electrical engineering main character energy π₯
πΈ NAME πΈ
ab8500_chargalg_check_charger_connection β literally just Check charger connection change π«Ά
π SYNOPSIS π
int ab8500_chargalg_check_charger_connection (struct ab8500_chargalg *di
);
π¦ ARGUMENTS π¦
diβ pointer to theab8500_chargalgstructure π that's it, that's the whole argument list, she's low maintenance
β¨ DESCRIPTION β¨
okay so here's the tea β this function will check if there is a change in the charger connection and change charge state accordingly. like, it peeks at what's plugged in and goes "oh? something's different?" and updates the state to match π«
and the iconic rule: AC has precedence over USB π no cap, AC wins every time, it's giving favorite child energy. USB could never π
π SEE ALSO π
Kernel file ./drivers/power/supply/ab8500_chargalg.c β and the whole friend group:
struct ab8500_charge_curr_maximization(9)struct ab8500_chargalg(9)ab8500_chargalg_safety_timer_expired(9)ab8500_chargalg_maintenance_timer_expired(9)ab8500_chargalg_state_to(9)ab8500_chargalg_start_safety_timer(9)ab8500_chargalg_stop_safety_timer(9)ab8500_chargalg_start_maintenance_timer(9)ab8500_chargalg_stop_maintenance_timer(9)ab8500_chargalg_kick_watchdog(9)ab8500_chargalg_ac_en(9)ab8500_chargalg_usb_en(9)ab8500_chargalg_update_chg_curr(9)ab8500_chargalg_stop_charging(9)ab8500_chargalg_hold_charging(9)ab8500_chargalg_start_charging(9)ab8500_chargalg_check_temp(9)ab8500_chargalg_check_charger_voltage(9)ab8500_chargalg_end_of_charge(9)ab8500_chargalg_chg_curr_maxim(9)ab8500_chargalg_external_power_changed(9)ab8500_chargalg_time_to_restart(9)ab8500_chargalg_algorithm(9)ab8500_chargalg_periodic_work(9)ab8500_chargalg_wd_work(9)ab8500_chargalg_work(9)ab8500_chargalg_get_property(9)
ngl bestie, that's a lot of cross-references β the whole charger algorithm family is here and they're all slaying in different ways π iykyk
okay that's the page!! π this lil masterpiece lives in ./drivers/power/supply and it's dated October 2026, so yeah β future icon behavior fr fr πβ¨ bye bestie, go check that charger connection π
π¦ 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