ab8500_btemp_get_property(9)
π«Ά ab8500_btemp_get_property(9) β Kernel API Manual, section 9 π«Ά
okay bestie, this is the page for ab8500_btemp_get_property(9) from the Kernel API Manual, and itβs literally the btemp-property getter. Itβs giving βsmall function, very specific job,β and weβre gonna cover every detail. Letβs go π
β¨
NAME π
ab8500_btemp_get_property β get the btemp properties
SYNOPSIS β¨
int ab8500_btemp_get_property (struct power_supply *psy , enum
power_supply_property psp , union power_supply_propval *val );
ARGUMENTS π
psyβ pointer to thepower_supplystructurepspβ pointer to thepower_supply_propertystructurevalβ pointer to thepower_supply_propvalunion
DESCRIPTION π¦
This function gets called when an application tries to get the btemp properties by reading the sysfs files. The properties itβs serving up are:
online: presence of the batterypresent: presence of the batterytechnology: battery technologytemp: battery temperature
And the return vibe? Returns error code in case of failure else 0(on success) β periodt. So success is the 0, failure is the error code, no cap.
bestie, thatβs the whole flow: sysfs read happens, this function gets called, and the btemp properties come through.
SEE ALSO π
Kernel file: ./drivers/power/supply/ab8500_btemp.c
Also check out these related icons:
struct ab8500_btemp_interrupts(9)struct ab8500_btemp(9)ab8500_btemp_batctrl_volt_to_res(9)ab8500_btemp_read_batctrl_voltage(9)ab8500_btemp_get_batctrl_res(9)ab8500_btemp_id(9)ab8500_btemp_periodic_work(9)ab8500_btemp_batctrlindb_handler(9)ab8500_btemp_templow_handler(9)ab8500_btemp_temphigh_handler(9)ab8500_btemp_lowmed_handler(9)ab8500_btemp_medhigh_handler(9)ab8500_btemp_periodic(9)ab8500_btemp_get_temp(9)ab8500_btemp_external_power_changed(9)
π cute sign-off time: source/version is ./drivers/power/supply, dated October 2026, for ab8500_btemp_get_property(9). Bye bestie, go read those sysfs files responsibly π
π
π¦ 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