handle_threaded_wake_irq(9)
π handle_threaded_wake_irq(9) β a Kernel API Manual moment
okay so bestie, welcome to the handle_threaded_wake_irq page from the Kernel API Manual. this one's short but it's lowkey important, so pay attention π«Ά
β¨ NAME β¨
handle_threaded_wake_irq β the handler for dedicated wake-up interrupts π€β‘οΈπ₯
πΈ SYNOPSIS πΈ
irqreturn_t handle_threaded_wake_irq (int irq , void *_wirq );
π ARGUMENTS π
irqβ the device-specific dedicated wake-up interrupt. this is the interrupt in question, the one whose whole job is waking stuff up β_wirqβ the wake IRQ data. literally the data, no cap π
π¦ DESCRIPTION π¦
so like, some devices have a separate wake-up interrupt on top of their normal device IO interrupt. the wake-up interrupt is the one that signals "hey, this device should be woken up from its idle state" π
this handler uses device specific pm_runtime functions to wake the device, and then it's up to the device to do whatever it needs to do. it's giving main character energy β everyone else is just supporting cast π
note that because the device may need to restore context and start up regulators, we use a threaded IRQ π§΅ (yes, that's why it's in the name, iykyk).
also note: we are not resending the lost device interrupts. we assume that the wake-up interrupt just needs to wake-up the device, and then the device's pm_runtime_resume can deal with the situation. periodt. π
π₯ SEE ALSO π₯
- the kernel file
./drivers/base/power/wakeirq.c dev_pm_attach_wake_irq(9)dev_pm_set_wake_irq(9)dev_pm_clear_wake_irq(9)devm_pm_set_wake_irq(9)dev_pm_set_dedicated_wake_irq(9)dev_pm_set_dedicated_wake_irq_reverse(9)dev_pm_enable_wake_irq_check(9)dev_pm_disable_wake_irq_check(9)dev_pm_enable_wake_irq_complete(9)dev_pm_arm_wake_irq(9)dev_pm_disarm_wake_irq(9)
like, the whole wake IRQ friend group honestly ππ
and that's the page!! it lives in ./drivers/base/power, dated October 2026, and it's iconic for it πβ¨ bye bestie, go wake up some devices π
π¦ 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