ab8500_fg_a..._discharging(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ab8500_fg_algorithm_discharging β€” Kernel API Manual ✨

okay so bestie, welcome to the ab8500_fg_a..._discharging(9) page, the full name is ab8500_fg_algorithm_discharging and it's a whole vibe, let's get into it 🫢


🌸 NAME 🌸

ab8500_fg_algorithm_discharging β€” the FG algorithm for when you're discharging, aka the battery-is-draining era πŸ’€πŸ”‹


✨ SYNOPSIS ✨

void ab8500_fg_algorithm_discharging (struct ab8500_fg *di );

that's it. that's the whole signature. no return value, she just does things πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • di β€” pointer to the ab8500_fg structure πŸ‘‘ literally the main character of this function, everything goes through her.

πŸ¦‹ DESCRIPTION πŸ¦‹

Battery capacity calculation state machine for when we're discharging πŸͺ«βœ¨

like, when the battery is going down instead of up, this is the state machine that handles the capacity math. that's the whole thing, no cap. lowkey iconic that it's this simple 🌈


🌟 SEE ALSO 🌟

Kernel file ./drivers/power/supply/ab8500_fg.c β€” go read her, she's the source of truth πŸ“–

and the whole friend group πŸ’–:


bestie if you're gonna touch any of these, like, read the source first fr fr. iykyk πŸ’œ

and that's the page!! πŸŽ€ this cutie lives over in ./drivers/power/supply, the manual is ab8500_fg_a..._discharging(9), and it was dated October 2026. slay, go read your kernel source, ily, bye πŸ¦‹πŸ’–

πŸ“¦ where this page comes from