ab8500_fg_calc_cap_charging(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– ab8500_fg_calc_cap_charging(9) πŸ’–

okay bestie, welcome to the Kernel API Manual page for ab8500_fg_calc_cap_charging β€” the charging-capacity math girlie πŸ’… she’s here to calculate remaining capacity while charging, and yes she ate.

🌸 NAME 🌸

ab8500_fg_calc_cap_charging β€” calculate remaining capacity while charging ✨

πŸ¦‹ SYNOPSIS πŸ¦‹

int ab8500_fg_calc_cap_charging (struct ab8500_fg *di );

πŸŽ€ ARGUMENTS πŸŽ€

  • di β€” pointer to the ab8500_fg structure 🫢

πŸ”₯ DESCRIPTION πŸ”₯

so this function returns the capacity in mAh, based on the previous calculated capcity (the page really spells it like that 😭) and the FG accumulator register value. the filter is filled with this capacity. periodt πŸ’–

πŸ‘‘ SEE ALSO πŸ‘‘

here’s the whole reference group chat, starting with the kernel file:

Kernel file ./drivers/power/supply/ab8500_fg.c struct


okay that’s the whole page 🫢 β€” from the source/version corner at ./drivers/power/supply, dated October 2026. mwah πŸ’‹

πŸ“¦ where this page comes from