dev_pm_disarm_wake_irq(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’€ 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):

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