ab8500_chargalg_state_to(9)
π ab8500_chargalg_state_to β like, the charge-state glow-up function (kernel API manual, section 9, bestie)
okay so picture this: you're deep in the kernel, section 9 of the Kernel API Manual, and there's this little function called ab8500_chargalg_state_to and honestly? it's giving "change charge state" and nothing else. that's the whole vibe. let's get into it π«Ά
β¨ SYNOPSIS β¨
void ab8500_chargalg_state_to (struct ab8500_chargalg *di , enum
ab8500_chargalg_states state );
no cap, that's the whole signature. two params, zero return value (it's void, she doesn't give anything back, she just does π
).
π ARGUMENTS π
diβ pointer to theab8500_chargalgstructure. yeah. that one. the struct. the main character. π₯stateβ the new charge algorithm state, as anenum ab8500_chargalg_states. this is the state we're switching to, iykyk.
πΈ DESCRIPTION πΈ
so like, this function gets called when a charge state change should occur. that's it. that's the whole job. it's the "hey bestie, we're moving to a new state" notification of the charging world β¨ literally just that.
π¦ SEE ALSO π¦
okay bestie, buckle up, because this list is LONG and honestly? iconic for it. all of these live in the kernel file ./drivers/power/supply/ab8500_chargalg.c:
struct ab8500_charge_curr_maximization(9)struct ab8500_chargalg(9)ab8500_chargalg_safety_timer_expired(9)ab8500_chargalg_maintenance_timer_expired(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_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)
like, the whole friend group showed up to the function's party. we love a supportive squad π
ngl, if you're touching charging states on an AB8500, you're gonna be bouncing between like half of that list. no cap.
and that's the page, bestie π this little read was brought to you by ./drivers/power/supply β the source/version vibe β dated October 2026, and yeah, the footer still says ab8500_chargalg_state_to(9) because she's consistent like that ππ periodt.
π¦ 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