tsens_irq_thread(9)
πΈ NAME
Okay bestie, this is tsens_irq_thread from the Kernel API Manual β the threaded interrupt handler for uplow interrupts. Yep, that's the whole name vibe. π
β¨ SYNOPSIS
irqreturn_t tsens_irq_thread (int irq , void *data );
π«Ά ARGUMENTS
irqβ the irq number, literally.dataβ the tsens controller private data. Very private. π
π DESCRIPTION
So the handler checks all the sensors to find the ones that violated their threshold limits. That's the main-character job. π
If the temperature is still outside the limits, it calls thermal_zone_device_update to update the thresholds. Otherwise, it re-enables the interrupts. Slay. π₯
Now, the level-triggered interrupt might deassert if the temperature returned to within the threshold limits by the time the handler got scheduled. And when that happens? We consider the irq to have been handled. No drama, no cap. π
π RETURN
IRQ_HANDLED β that's the return, periodt. π
π¦ SEE ALSO
- Kernel file:
./drivers/thermal/qcom/tsens.c struct tsens_irq_data(9)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_combined_irq_thread(9)
This little icon lives under ./drivers/thermal/qcom, dated October 2026, and it's tsens_irq_thread(9) all the way down. Byeeee πβ¨
π¦ 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