dev_pm_enabl...ke_irq_check(9)
π dev_pm_enabl...ke_irq_check β Kernel API Manual vibes π
okay so bestie, welcome to the Kernel API Manual entry for dev_pm_enabl...ke_irq_check β yes the name is a whole entire mouthful and yes we're gonna get through it together, hand in hand, no cap π
β¨ NAME β¨
dev_pm_enable_wake_irq_check β literally checks and enables the wake-up interrupt, that's the whole gig π«Ά
πΈ SYNOPSIS πΈ
void dev_pm_enable_wake_irq_check (struct device *dev , bool can_change_status );
π¦ ARGUMENTS π¦
devβ the device, bestie. the main character of this whole function πcan_change_statusβ tells us whether we're allowed to change the wake-up interrupt status. like, permission slip energy β¨
π DESCRIPTION π
so the vibe here is: this enables the wakeirq conditionally. not just whenever, okay? we enable the wake-up interrupt lazily on the first rpm_suspend β and honestly that's so real of it π§
why, you ask? because the consumer device starts in RPM_SUSPENDED state, and the first pm_runtime_get would otherwise try to disable an already-disabled wakeirq, which is giving messy. we don't do messy. and the wake-up interrupt starts disabled with IRQ_NOAUTOEN set β iconic, self-aware, knows its boundaries π
bestie this is important: it should be called fromrpm_suspend,rpm_resume,pm_runtime_force_suspendorpm_runtime_force_resume. no random drive-bys please π
and the caller must hold dev->power.lock or disable runtime PM to change wirq->status. that part is not a suggestion, that's the law, periodt π₯
π SEE ALSO π
the kernel file lives at ./drivers/base/power/wakeirq.c and here's the whole friend group, mwah:
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_disable_wake_irq_check(9)dev_pm_enable_wake_irq_complete(9)dev_pm_arm_wake_irq(9)dev_pm_disarm_wake_irq(9)
and that's the page, bestie β go forth and enable those wake-up interrupts responsibly ππ
sign-off szn: this one comes from ./drivers/base/power, dated October 2026, and belongs to dev_pm_enabl...ke_irq_check(9). slay, bye πβ¨π
π¦ 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