ab8500_charg...get_property(9)
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 thepower_supplystructure πpspβ pointer to thepower_supply_propertystructure β¨valβ pointer to thepower_supply_propvalunion π¦
πΈ 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/unknownhealth: 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
struct ab8500_charge_curr_maximization(9)struct ab8500_chargalg(9)ab8500_chargalg_safety_timer_expired(9)ab8500_chargalg_maintenance_timer_expired(9)ab8500_chargalg_state_to(9)ab8500_chargalg_check_charger_connection(9)ab8500_chargalg_start_safety_timer(9)ab8500_chargalg_stop_safety_timer(9)ab8500_chargalg_start_maintenance_timer(9)ab8500_chargalg_stop_maintenance_timer(9)ab8500_chargalg_kick_watchdog(9)ab8500_chargalg_ac_en(9)ab8500_chargalg_usb_en(9)ab8500_chargalg_update_chg_curr(9)ab8500_chargalg_stop_charging(9)ab8500_chargalg_hold_charging(9)ab8500_chargalg_start_charging(9)ab8500_chargalg_check_temp(9)ab8500_chargalg_check_charger_voltage(9)ab8500_chargalg_end_of_charge(9)ab8500_chargalg_chg_curr_maxim(9)ab8500_chargalg_external_power_changed(9)ab8500_chargalg_time_to_restart(9)ab8500_chargalg_algorithm(9)ab8500_chargalg_periodic_work(9)ab8500_chargalg_wd_work(9)ab8500_chargalg_work(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms