STRUCT TSENS_IRQ_DATA(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 🫢


πŸ“ real talk: this page lives under ./drivers/thermal/qcom, was stamped October 2026, and it's officially signed struct tsens_irq_data(9) β€” stay cool (but not below threshold cool, obviously) πŸ’–πŸ§šβ€β™€οΈ
πŸ“¦ where this page comes from