ab8500_charg...get_property(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ab8500_charger_ac_get_property(9) ✨

okay so bestie, welcome to the Kernel API Manual πŸŽ€ β€” yes the title up top gets truncated to ab8500_charg...get_property(9) because even manpage headers have a character limit, and honestly? relatable πŸ’€. Anyway, sit down, hydrate, and let's talk about how we read AC/mains properties πŸ’–


🌸 NAME 🌸

ab8500_charger_ac_get_property β€” get the ac/mains properties 🫢


✨ SYNOPSIS ✨

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

πŸ¦‹ ARGUMENTS πŸ¦‹

  • psy β€” pointer to the power_supply structure. it's giving "the whole entire supply bestie" πŸ‘‘
  • psp β€” pointer to the power_supply_property structure. like, which property are we even asking about rn 😭
  • val β€” pointer to the power_supply_propval union. this is where the answer goes to live, no cap πŸ’…

🌈 DESCRIPTION 🌈

so this function?? it gets called when an application tries to get the ac/mains properties by reading the sysfs files. main character energy fr fr ⭐

the AC/Mains properties are online, present and voltage. periodt:

  • online β€” ac/mains charging is in progress or not πŸ’–
  • present β€” presence of the ac/mains πŸ¦‹
  • voltage β€” AC/Mains voltage ⚑
heads up bestie: it Returns error code in case of failure else 0(on success) β€” so 0 means slay, anything else means we're not okay 😭

🧚 SEE ALSO 🧚

the kernel file ./drivers/power/supply/ab8500_charger.c, plus literally this whole friend group:


and that's the whole page bestie, you ate that πŸ“

this little love letter lives in ./drivers/power/supply and it's stamped October 2026 if you ever need to cite your sources πŸ’œ mwah, go read your sysfs files responsibly βœ¨πŸ’…

πŸ“¦ where this page comes from