dev_pm_disarm_wake_irq(9)
π€ dev_pm_disarm_wake_irq β the Kernel API Manual, bestie edition πΈ
okay so real talk, this one's from the Kernel API Manual (section 9, the deep-lore kernel internals section, iykyk) and it's literally the "ok we're done here, go back to sleep" button for a device's wake-up interrupt. Short page, but every word slays. let's get into it π«Ά
β¨ NAME β¨
dev_pm_disarm_wake_irq β disarm device wake-up π
like, the wake-up is armed, and now we're un-arming it. the way that this is the entire concept of the function. iconic.
π¦ SYNOPSIS π¦
void dev_pm_disarm_wake_irq (struct wake_irq *wirq );
no return value, no drama, it just does the thing and dips. periodt.
π ARGUMENTS π
wirqβ the device wake-up interrupt π that's the one you're disarming. hand it over and let it rest.
π DESCRIPTION π
So here's the vibe check: this clears up the wake-up event β but conditionally, based on device_may_wake π. not "always clear it", not "never clear it". conditional. it checks device_may_wake and decides from there, so don't go assuming it just nukes the wake-up event every single time, because that is not the assignment fr fr.
lowkey important: the conditional part is the whole personality of this function. device_may_wake is running the show here. π
β SEE ALSO β
the whole friend group π (also, kernel file ./drivers/base/power/wakeirq.c is where this lives, if you wanna go read the source like the main character you are):
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_enable_wake_irq_complete(9)dev_pm_arm_wake_irq(9)
and yeah, dev_pm_arm_wake_irq(9) is the obvious counterpart β you armed it, now you're disarming it. the circle of life, kernel edition π§
π the sign-off π
this lil page comes to you from ./drivers/base/power, dated October 2026, and it's all about dev_pm_disarm_wake_irq(9). go forth and disarm responsibly, bestie β mwah π
β¨π
π¦ 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