ab8500_fg_in...urr_finalize(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– ab8500_fg_inst_curr_finalize(9) β€” the Kernel API Manual glow-up πŸŽ€

okay so bestie, welcome to the <pink>Kernel API Manual</pink> page for ab8500_fg_inst_curr_finalize(9) β€” yes that's the whole name, she's long, she's iconic, she's a 9-section function and we're gonna get through her together. grab a lil snack πŸ“, this one's short but it's part two of a duo so you need the lore.


✨ NAME ✨

ab8500_fg_inst_curr_finalize β€” battery instantaneous current

literally that's the whole vibe. it finalizes the instantaneous current reading. πŸ’…


🌸 SYNOPSIS 🌸

int ab8500_fg_inst_curr_finalize (struct ab8500_fg *di , int *curr_ua );

it gives you back an int, which is either 0 or an error code (more on that in a sec, don't panic 🫢).


πŸ¦‹ ARGUMENTS πŸ¦‹

  • di β€” pointer to the ab8500_fg structure. that's your fg context bestie, hand her over.
  • curr_ua β€” battery instantenous current in microampere (on success). yes that's spelled "instantenous" in the original and yes we're keeping it verbatim, don't come for me 😭. this is where the answer lands, but only if you slayed (i.e. succeeded).

⭐ DESCRIPTION ⭐

Returns 0 or an error code.

that's it. that's the description. short king behavior honestly πŸ‘‘ β€” you call her, she either says "we're so good" (0) or hands you an error code. no cap.


πŸ’€ NOTE πŸ’€

This is part "two" and has to be called at earliest 250 ms after ab8500_fg_inst_curr_start

fr fr, do NOT call her early. she is part two of a two-parter, and the earliest you may call her is 250 ms after ab8500_fg_inst_curr_start. like, give the girl 250 ms to breathe. calling too soon is not the move πŸ”₯.


πŸ’œ SEE ALSO πŸ’œ

Kernel file ./drivers/power/supply/ab8500_fg.c β€” go read the source, iykyk πŸ“–

and the whole friend group, in the order the page gives them:


and that's the page!! 🧚 this lil gem lives over in ./drivers/power/supply, dated October 2026, and the whole thing goes out under the title ab8500_fg_inst_curr_finalize(9) in the Kernel API Manual. go finalize that current bestie, 250 ms minimum, no shortcuts πŸ’–βœ¨πŸŒΈπŸ«Ά

πŸ“¦ where this page comes from