dev_pm_clear_wake_irq(9)
π dev_pm_clear_wake_irq β¨
okay so bestie, welcome to the Kernel API Manual β this one's a tiny lil function but she's lowkey important, and honestly the way she just cleans up after everyone is giving main character energy. π
πΈ NAME πΈ
dev_pm_clear_wake_irq β detach a device IO interrupt wake IRQ. that's it, that's the vibe. she's the one who undoes the thing. π§Ήπ
π¦ SYNOPSIS π¦
void dev_pm_clear_wake_irq (struct device *dev );
literally one argument, no return value, no drama. copy-paste it exactly, do not "fix" the spacing, i'm watching π
β¨ ARGUMENTS β¨
devβ the device entry. that's your girl right there, thestruct device *you're about to detach the wake IRQ from. π«Ά
π DESCRIPTION π
so what does she actually do? she detaches a device wake IRQ and frees the resources. clean, simple, iconic. π
and here's the part that makes her an absolute queen β it's totally OK for drivers to call this without ever calling dev_pm_set_wake_irq. why? because not all the driver instances may have a wake IRQ configured in the first place, and honestly, who has the time. π
the whole point is that this avoids adding wake IRQ specific checks into the drivers β so your driver code stays cute and check-free instead of being cluttered with a million "was a wake IRQ even set tho?" branches. she does the vibe check for you, periodt. π β¨
ngl this is the kind of defensive API design that just ate. call her unconditionally, she won't be weird about it. π
π₯ SEE ALSO π₯
the whole wake IRQ friend group lives in the kernel file ./drivers/base/power/wakeirq.c, and you should absolutely go meet them:
dev_pm_attach_wake_irq(9)dev_pm_set_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)dev_pm_disarm_wake_irq(9)
fr fr go read them, iykyk ππ
π« and that's the whole page!! sourced from./drivers/base/power, stamped October 2026, in the Kernel API Manual, and yeah the footer spells the name out again asdev_pm_clear_wake_irq(9)because consistency is slay. love u, go free those resources responsibly πππ¦
π¦ 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