STRUCT ADC_TM5_GEN3_CHANNEL_PROPS(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

struct adc_tm5_gen3_channel_props β€” bestie, this is the ADC_TM channel structure, and it's literally the main character of this whole page ✨

Okay so quick vibe check: we're in the Kernel API Manual, section 9, and this struct is the little bundle of properties that describes one thermal-monitoring channel. Slay. Let's get into it πŸŽ€


🌸 SYNOPSIS 🌸

struct adc_tm5_gen3_channel_props {
    struct adc5_channel_common_prop common_props;
    struct adc_tm5_gen3_chip *chip;
    struct thermal_zone_device *tzd;
    unsigned int sdam_index;
    unsigned int timer;
    unsigned int tm_chan_index;
    bool high_thr_en;
    bool low_thr_en;
 };

That's the whole shape of it, no cap. Now let's meet the members one by one, because each and every one of them deserves their moment 🫢


πŸ‘‘ Members πŸ‘‘

  • common_props β€” the structure with common ADC channel properties. It's giving "shared foundation", the base-level info every ADC channel carries around πŸ’…
  • chip β€” the ADC TM device. Like, the actual hardware baddie this channel belongs to πŸ”₯
  • tzd β€” pointer to the thermal device corresponding to this TM channel. Your channel's thermal bestie, basically 🌑️
  • sdam_index β€” the SDAM on which this TM channel lies. Yes, that's where it lives, that's its address 🏠
  • timer β€” the time period of recurring TM measurement. So like, how often it keeps checking back in on you ⏰
  • tm_chan_index β€” the TM channel number used. Its literal ID, its little name tag 🎟️
  • high_thr_en β€” TM high threshold crossing detection enabled. Highkey important: this is the flag for catching when things go above the threshold 🚨
  • low_thr_en β€” TM low threshold crossing detection enabled. And this one's the lowkey counterpart, catching when things dip below the threshold 🧊
Ngl, those last two are bools, so they're just on/off switches for threshold-crossing detection β€” high and low respectively. Periodt πŸ’€

πŸ¦‹ SEE ALSO πŸ¦‹

  • Kernel file ./drivers/thermal/qcom/qcom-spmi-adc-tm5-gen3.c
  • struct adc_tm5_gen3_chip(9)

Like, go read those too, iykyk πŸ“šβœ¨


And that's the whole page, bestie πŸŽ€ This lil' rendering came to you from ./drivers/thermal/qcom, dated October 2026, and it answers to the name struct adc_...hannel_props(9) β€” iconic, honestly. Go forth and monitor those thermal channels πŸ’œπŸ¦‹πŸŒΈ

πŸ“¦ where this page comes from