ab8500_chargalg_ac_en(9)
β¨ ab8500_chargalg_ac_en β¨
okay bestie, so this one's from the Kernel API Manual and it's literally the function that turns your AC charger on and off π
like, that's the whole vibe. ab8500_chargalg_ac_en(9) β say it with me now, main character energy fr.
πΈ SYNOPSIS πΈ
int ab8500_chargalg_ac_en (struct ab8500_chargalg *di , int enable , int
vset_uv , int iset_ua );
she takes four args and hands you back an int, periodt β¨
π ARGUMENTS π
diβ a pointer to theab8500_chargalgstructure π«Ά that's your whole charging-algorithm situation right there.enableβ charger on or off, that's it, that's the toggle πvset_uvβ the charger output voltage you're asking for, measured in microvolt β‘iset_uaβ the charger output current you're asking for, measured in microampere π₯
π DESCRIPTION π
The AC charger gets turned on or off, and it does it with the charge voltage and current you requested. no cap, that's the function: you say what voltage, you say what current, you say on or off, and she slays π β¨
π¦ SEE ALSO π¦
the kernel file lives at ./drivers/power/supply/ab8500_chargalg.c β that's the source, iykyk π§
and here's the whole friend group, all the siblings and cousins you might wanna meet:
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_check_charger_connection(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_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)
and that's the whole page babes π this one got shipped out of ./drivers/power/supply and it's dated October 2026 β go forth and charge responsibly, mwah ππ·β
π¦ 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