ab8500_fg_c...discharge_fg(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

okay bestie, this is the ab8500_fg_c...discharge_fg(9) page from the Kernel API Manual β€” the function is ab8500_fg_calc_cap_discharge_fg, and it's literally Capacity in discharge with FG. Periodt. ✨

πŸ’… SYNOPSIS πŸ’…

int ab8500_fg_calc_cap_discharge_fg (struct ab8500_fg *di );

πŸŽ€ ARGUMENTS πŸŽ€

  • di β€” pointer to the ab8500_fg structure. That's the whole argument list, bestie. 🫢

✨ DESCRIPTION ✨

So ab8500_fg_calc_cap_discharge_fg returns the capacity in mAh based on the previously calculated capcity and the FG accumulator register value. Yes, "capcity" is right there in the source vibe β€” we are not fixing it, we respect the lore. πŸ’€

That value gets added to the filter, and then a new mean value is calculated and returned. It's giving "math but make it fuel gauge." πŸ”₯

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file: ./drivers/power/supply/ab8500_fg.c struct β€” the source location is part of the group chat too. And here's everyone else, in the exact order they were listed:


xoxo, your kernel bestie πŸ’– β€” source/version: ./drivers/power/supply, date: October 2026. Stay charged, bestie. ⚑

πŸ“¦ where this page comes from