tsens_critical_irq_thread(9)
π NAME π
okay so bestie, welcome to tsens_critical_irq_thread(9) from the Kernel API Manual β¨ β it's literally the threaded handler for critical interrupts. that's the vibe. that's the job. π
π SYNOPSIS π
irqreturn_t tsens_critical_irq_thread (int irq , void *data );
π¦ ARGUMENTS π¦
irqβ the irq number. yes, literally the irq number, bestie.dataβ tsens controller private data. it's giving "controller private data" and we respect it. π
πΈ DESCRIPTION πΈ
okay so here's the lore: it checks the FSM watchdog bark status and clears it if needed π₯. then it checks all the sensors to find the ones that violated their critical threshold limits. then it clears and then re-enables the interrupt. periodt.
and here's the cute little edge case: the level-triggered interrupt might deassert if the temperature returned to within the threshold limits by the time the handler got scheduled π. in that case, we consider the irq to have been handled. no cap. π
π RETURN π
IRQ_HANDLED β that's the return, bestie. that's it. iconic. β¨
π SEE ALSO π
the kernel file ./drivers/thermal/qcom/tsens.c is the main character here, and these are its besties:
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_irq_thread(9)tsens_combined_irq_thread(9)
and that's the page, bestie π«Ά β source/version is ./drivers/thermal/qcom, dated October 2026, and it's all for tsens_critical_irq_thread(9). stay critical, stay threaded. ππβ¨
π¦ 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