check_charging_duration(9)
π check_charging_duration(9) π
okay so real talk, bestie β this is a page from the Kernel API Manual, and it's about check_charging_duration, which literally monitors your charging/discharging duration. it's giving battery bodyguard energy tbh π«Ά
β¨ NAME β¨
check_charging_duration β monitor charging/discharging duration π
πΈ SYNOPSIS πΈ
int check_charging_duration (struct charger_manager *cm );
π ARGUMENTS π
cmβ the Charger Manager representing the battery. that's the main character right there π
π¦ DESCRIPTION π¦
okay so here's the vibe π
β if the whole charging duration exceed 'charging_max_duration_ms', cm stop charging to prevent overcharge/overheat. like, it's cutting you off for your own good, no cap π₯
and if the discharging duration exceed 'discharging _max_duration_ms', charger cable is attached, after full-batt, cm start charging to maintain fully charged state for battery. so it's out here topping you back up to full so you stay iconic β¨
ngl both of these are straight-up safety-and-maintenance behaviour β one shuts things down before they get too hot, the other keeps the battery chillin' at fully charged. periodt π
π SEE ALSO π
kernel file ./drivers/power/supply/charger-manager.c, plus the whole friend group:
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)cm_get_target_status(9)_cm_monitor(9)cm_monitor(9)_setup_polling(9)cm_monitor_poller(9)cm_setup_timer(9)charger_extcon_work(9)charger_extcon_notifier(9)charger_extcon_init(9)charger_manager_register_extcon(9)charger_manager_prepare_sysfs(9)
go read them all, iykyk πβ¨
aaaand that's the whole page, bestie π mwah π β this one lives at ./drivers/power/supply, dated October 2026, and it's filed under check_charging_duration(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