irq_set_irq_wake(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’€ irq_set_irq_wake β€” the "let this IRQ drag the whole system out of bed" button

okay so bestie, welcome to irq_set_irq_wake(9) from the Kernel API Manual ✨ this is a kernel-function page, not a command, so no shell stuff here β€” buckle up πŸŽ€


🌸 SYNOPSIS 🌸

int irq_set_irq_wake (unsigned int irq , unsigned int on );

that's the whole signature, no cap. int in, int out, two unsigned ints in the middle πŸ’…


🌈 ARGUMENTS 🌈

  • irq β€” the interrupt you're controlling, i.e. the one you're about to give wake-up privileges to 🫢
  • on β€” enable/disable power management wakeup. flip it on, flip it off, that's the whole job ✨

πŸ’– DESCRIPTION πŸ’–

so this function enables or disables power management wakeup mode, and heads up: that mode is disabled by default. πŸ™ˆ you gotta ask for it.

also, the enables and disables have to match β€” like, every enable needs its corresponding disable. this is literally the same matching rule as non-wakeup mode support, so it's giving "consistent bookkeeping or you'll regret it" energy πŸ‘‘

and what does wakeup mode even do? ok so it lets this IRQ wake the system from sleep states like "suspend to RAM". your machine's napping 😴, something interesting happens, and this IRQ can go "girl wake UP" πŸ’€πŸ”₯


⭐ NOTE ⭐

this one's important, so listen up bestie:

the irq enable/disable state is completely orthogonal to the enable/disable state of irq wake. πŸ¦‹

meaning?? an irq can be disabled with disable_irq and still wake the system, as long as that irq has wake enabled. those two switches are living separate lives, main character energy, they do not talk to each other πŸ’…

but β€” and this is the plot twist 🫒 β€” if that doesn't hold true for you, then the underlying irq chip and the related driver need to be investigated. like, go look at them. something's off. no vibes, only bugs 😭


πŸ” SEE ALSO πŸ”

everything below is from the kernel file ./kernel/irq/manage.c, and it is a lot, so buckle in 🧚


and that's the whole page, periodt πŸ“ this cutie lives under ./kernel/irq in the Kernel API Manual, dated October 2026 β€” mwah, go wake something up responsibly πŸ’œβœ¨

πŸ“¦ where this page comes from