check_charging_duration(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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:

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