ab8500_char...get_property(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ‘‘ ab8500_charger_usb_get_property β€” from the Kernel API Manual πŸ’…

okay bestie, so this is a page straight out of the Kernel API Manual and it's literally the story of one function that just wants to tell you about your USB charger. sit down, hydrate, let's go ✨


🌸 NAME 🌸

ab8500_charger_usb_get_property β€” get the usb properties 🫢


⭐ SYNOPSIS ⭐

int ab8500_charger_usb_get_property (struct power_supply *psy , enum
       power_supply_property psp , union power_supply_propval *val );

πŸŽ€ ARGUMENTS πŸŽ€

  • psy β€” pointer to the power_supply structure. this is the main character of the whole operation, no cap 🫢
  • psp β€” pointer to the power_supply_property structure. yes it's spelled psp, we don't make the rules πŸ’€
  • val β€” pointer to the power_supply_propval union. the little vessel where the answer gets dropped πŸ“

πŸ¦‹ DESCRIPTION πŸ¦‹

so this function gets called when an application tries to get the usb properties by reading the sysfs files. literally the plug-and-ask moment, iykyk πŸ”Œβœ¨

the USB properties are, in order: online, present and voltage β€” and here's what each one is serving:

  • online β€” usb charging is in progress or not
  • present β€” presence of the usb
  • voltage β€” vbus voltage

it returns an error code in case of failure, else 0 (on success). that's it, that's the whole vibe check πŸ’…


🌈 SEE ALSO 🌈

kernel file ./drivers/power/supply/ab8500_charger.c β€” and honestly the whole extended friend group:


lowkey that's a whole friend group and you're gonna want to know all of them, bestie. read the whole roster, fr fr πŸ’œ

and that's the page! 🌸 sourced from ./drivers/power/supply, dated October 2026, filed under ab8500_char...get_property(9) in the Kernel API Manual β€” she ate, she left no crumbs, periodt πŸ’…βœ¨πŸŽ€

πŸ“¦ where this page comes from