dev_pm_enab...irq_complete(9)
π dev_pm_enable_wake_irq_complete β wake IRQ glow-up, part two π
okay bestie, so this one's a kernel API manual page (section 9, the fancy "Kernel API Manual" collection β¨) and it is exactly the little helper you want when your wake IRQ needs to wake up after you've already told your device to go night-night π΄
β¨ NAME β¨
dev_pm_enable_wake_irq_complete β enable wake IRQ not enabled before π«Ά
like, it does the enabling thing that didn't happen earlier. that's the whole vibe. slay.
πΈ SYNOPSIS πΈ
void dev_pm_enable_wake_irq_complete (struct device *dev );
note that it returns void β nothing comes back, it just does the thing π
(also pls enjoy the little space before the ) in the original, we respect the original formatting around here π)
π¦ ARGUMENTS π¦
devβ Device using the wake IRQ π (yep. that's the one. that's your device.)
π DESCRIPTION π
So here's the tea, bestie π: this function enables the wake IRQ conditionally based on status β meaning it checks the vibe first before doing anything π. It's mainly used when you want to enable the wake IRQ after running ->runtime_suspend, and that whole situation depends on WAKE_IRQ_DEDICATED_REVERSE. iykyk π
And the rule, the golden rule, the do not skip this rule π: it should be called from rpm_suspend or pm_runtime_force_suspend. That's the only place this makes sense β anywhere else and it's giving chaos energy, not main character energy.
β οΈ fr fr, call it fromrpm_suspendorpm_runtime_force_suspend. That's not a suggestion, that's the contract π
π₯ SEE ALSO π₯
The kernel file lives at ./drivers/base/power/wakeirq.c β go read it, it's iconic π
and the whole friend group of wake IRQ functions, all here, no cap:
dev_pm_attach_wake_irq(9)dev_pm_set_wake_irq(9)dev_pm_clear_wake_irq(9)devm_pm_set_wake_irq(9)handle_threaded_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_arm_wake_irq(9)dev_pm_disarm_wake_irq(9)
bye bestie!! πβ¨ this one came from ./drivers/base/power and it's dated October 2026 ποΈ β go enable some IRQs, you've got this π§π
π¦ 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