ab8500_charg..._usb_current(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– ab8500_charger_get_usb_current(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual ✨ β€” yes we're in the kernel docs now, and yes this page is short and sweet, we love a low-effort icon. πŸŽ€


✨ NAME ✨

ab8500_charger_get_usb_current β€” get usb charger current πŸ”ŒπŸ’…


🌸 SYNOPSIS 🌸

int ab8500_charger_get_usb_current (struct ab8500_charger *di );

that's it. that's the whole vibe check. 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

  • di β€” pointer to the ab8500_charger structure πŸ’œ literally just a handle to the charger struct, nothing spicy.

⭐ DESCRIPTION ⭐

so what does it do, you ask? it returns the usb charger current. periodt. πŸ”₯

on success you get the usb current in microamperes β€” and on failure you get an error code instead 😭 so like, don't just assume it's a number, check it, bestie.

heads up: microamperes. not amps, not milliamps. tiny units. the way that a "success" number and a "failure" error code come out of the same int… iconic but chaotic πŸ’€

🌈 SEE ALSO 🌈

the whole squad, fr fr β€” here's everyone in the kernel file ./drivers/power/supply/ab8500_charger.c:

like… that's the entire extended friend group 😭 iykyk


that's the page, bestie! πŸ’… sign-off time: this little gem lives in ./drivers/power/supply, dated October 2026 β€” go forth and read your microamperes responsibly πŸŒΈπŸ¦‹πŸ’–

πŸ“¦ where this page comes from