STRUCT AB8500_BTEMP(9)
πΈ NAME πΈ
okay so bestie, meet struct ab8500_btemp β ab8500 BTEMP device information. This is from the Kernel API Manual, and the pageβs manual name is struct ab8500_btemp(9). We are literally about to vibe-check a kernel struct, and honestly? iconic. π
β¨
β¨ SYNOPSIS β¨
copy this exactly, no cap:
struct ab8500_btemp {
struct device *dev;
struct list_head node;
int curr_source;
int bat_temp;
int prev_bat_temp;
struct ab8500 *parent;
struct thermal_zone_device *tz;
struct iio_channel *bat_ctrl;
struct ab8500_fg *fg;
struct ab8500_bm_data *bm;
struct power_supply *btemp_psy;
struct ab8500_btemp_events events;
struct ab8500_btemp_ranges btemp_ranges;
struct workqueue_struct *btemp_wq;
struct delayed_work btemp_periodic_work;
bool initialized;
};
π Members π
devβ pointer to the structure device. π«Άnodeβ list of AB8500 BTEMPs, hence prepared for reentrance.curr_sourceβ what current source we use, in uA.bat_tempβ dispatched battery temperature in degree Celsius.prev_bat_tempβ last measured battery temperature in degree Celsius.parentβ pointer to thestruct ab8500.tzβ thermal zone for the battery.bat_ctrlβ this one is in the struct up top; the original Members section doesnβt give it a separate description, so Iβm not making stuff up, bestie. πfgβ pointer to thestruct fg.bmβ platform specific battery management information.btemp_psyβ structure for BTEMP specific battery properties.eventsβ structure for information about events triggered.btemp_rangesβ battery temperature range structure.btemp_wqβ work queue for measuring the temperature periodically.btemp_periodic_workβ work for measuring the temperature periodically.initializedβ true if battery id read.
π SEE ALSO π
the receipts and adjacent lore:
- Kernel file:
./drivers/power/supply/ab8500_btemp.c struct ab8500_btemp_interrupts(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_get_property(9)ab8500_btemp_external_power_changed(9)
sign-off time: source/version vibe is ./drivers/power/supply, dated October 2026, and the manual page is struct ab8500_btemp(9). go be a kernel struct understander, bestie β periodt. ππ¦
π¦ 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