STRUCT ADC_TM5_GEN3_CHANNEL_PROPS(9)
π 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
- 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