STRUCT TSENS_IRQ_DATA(9)
β¨ struct tsens_irq_data(9) β¨
okay so bestie, welcome to the Kernel API Manual entry for struct tsens_irq_data β literally the glow-up era of temperature monitoring π
π NAME π
struct tsens_irq_data β IRQ status and temperature violations π«Ά like, it's the receipts for when your temps got a lil too spicy π₯
π¦ SYNOPSIS π¦
struct tsens_irq_data {
u32 up_viol;
int up_thresh;
u32 up_irq_mask;
u32 up_irq_clear;
u32 low_viol;
int low_thresh;
u32 low_irq_mask;
u32 low_irq_clear;
u32 crit_viol;
u32 crit_thresh;
u32 crit_irq_mask;
u32 crit_irq_clear;
};
no cap, that's the whole struct β copy it exactly, don't go editing it because you think it looks nicer another way π
πΈ Members πΈ
so there's a whole squad here, and they come in cute lil trios β upper, lower, and critical. main character energy all around π
π the upper threshold crew (the "you're getting warm" girlies)
up_violβ upper threshold violated. yes ma'am, the upper limit got broken πup_threshβ upper threshold temperature value. this is the number she's not supposed to pass π‘οΈup_irq_maskβ mask register for upper threshold irqs β¨up_irq_clearβ clear register for upper threshold irqs π§Ή
π the lower threshold crew (the "you're too chilly, babe" girlies)
low_violβ lower threshold violated. she went under, and we're all judging π₯Άlow_threshβ lower threshold temperature value π‘οΈlow_irq_maskβ mask register for lower threshold irqs β¨low_irq_clearβ clear register for lower threshold irqs π§Ή
π the critical threshold crew (the "abort mission" girlies)
crit_violβ critical threshold violated. this is the serious one, bestie, no playing around πcrit_threshβ critical threshold temperature value π‘οΈcrit_irq_maskβ mask register for critical threshold irqs β¨crit_irq_clearβ clear register for critical threshold irqs π§Ή
π Description π
so like, this structure is literally the whole vibe check for temperature threshold settings π it holds the data about those threshold settings and the irq status if they were violated β like a little scrapbook of every time the temp said "too much" πΈ periodt.
β SEE ALSO β
the Kernel file ./drivers/thermal/qcom/tsens.c is the mothership, and these are her friends, iykyk π«Ά
tsens_read_temp(9)tsens_hw_to_mC(9)tsens_mC_to_hw(9)tsens_set_interrupt(9)tsens_threshold_violated(9)tsens_critical_irq_thread(9)tsens_irq_thread(9)tsens_combined_irq_thread(9)
π real talk: this page lives under./drivers/thermal/qcom, was stamped October 2026, and it's officially signedstruct tsens_irq_data(9)β stay cool (but not below threshold cool, obviously) ππ§ββοΈ
π¦ 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