ab8500_load..._bat_voltage(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ab8500_load..._bat_voltage(9) β€” Kernel API Manual πŸŽ€

okay so bestie, this is a page straight out of the Kernel API Manual, and it's about one very specific little function that goes and gets you a load-compensated battery voltage. yes, that's a whole thing. let's get into it ✨


✨ NAME ✨

ab8500_load_comp_fg_bat_voltage β€” get load compensated battery voltage πŸ¦‹


🌸 SYNOPSIS 🌸

int ab8500_load_comp_fg_bat_voltage (struct ab8500_fg *di , bool always );

πŸ’– ARGUMENTS πŸ’–

  • di β€” pointer to the ab8500_fg structure. that's your main character right there πŸ‘‘
  • always β€” always return a voltage, also uncompensated. like, even if the compensated one isn't available, you still get a number πŸ”₯

🧚 DESCRIPTION 🧚

Returns compensated battery voltage (on success) else error code. slay πŸ’…

If always is specified, we always return a voltage β€” but heads up, it may be uncompensated. so like, you get a value, it's just maybe not the fancy load-compensated one. lowkey important distinction, no cap πŸ™ˆ


🫢 SEE ALSO 🫢

Kernel file ./drivers/power/supply/ab8500_fg.c struct ab8500_fg_interrupts(9), and honestly the whole friend group:

like, the whole squad fr fr πŸ˜­πŸ’œ


okay that's the page!! this came out of ./drivers/power/supply and it's dated October 2026 β€” so mark your calendar bestie, and go read some battery voltage code πŸ’…βœ¨πŸŽ€

πŸ“¦ where this page comes from