ab8500_charg...get_property(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay bestie, welcome to the ab8500_charg...get_property(9) page from the Kernel API Manual πŸ’…βœ¨ this one is short and sweet.

πŸ’– NAME πŸ’–

ab8500_chargalg_get_property β€” get the chargalg properties 🫢

⚑ SYNOPSIS ⚑

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

πŸŽ€ ARGUMENTS πŸŽ€

  • psy β€” pointer to the power_supply structure πŸ’–
  • psp β€” pointer to the power_supply_property structure ✨
  • val β€” pointer to the power_supply_propval union πŸ¦‹

🌸 DESCRIPTION 🌸

bestie, this function gets called when an application tries to get the chargalg properties by reading the sysfs files. like, that is literally its whole moment.

The details it’s serving:

  • status: charging/discharging/full/unknown
  • health: the health of the battery

It returns an error code in case of failure, else 0 on success. no cap.

lowkey important: failure means an error code comes back, success is 0 β€” don’t get it twisted πŸ’…

🌈 SEE ALSO 🌈

Kernel file: ./drivers/power/supply/ab8500_chargalg.c


byeee bestie 🫢 this page lives in the ./drivers/power/supply source path, dated October 2026, and it’s the ab8500_charg...get_property(9) page β€” mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from