STRUCT AB8500_BTEMP(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 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 the struct 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 the struct 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:


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