pm_runtime_is_irq_safe(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ pm_runtime_is_irq_safe(9) πŸ¦‹

okay bestie, welcome to the Kernel API Manual group chat πŸ’– β€” today's main character is pm_runtime_is_irq_safe(9), and she's here to answer one very specific runtime PM question. no cap.


✨ NAME ✨

pm_runtime_is_irq_safe β€” check if runtime PM can work in interrupt context. literally the vibe check for IRQ-context runtime PM energy πŸ’…

🌸 SYNOPSIS 🌸

bool pm_runtime_is_irq_safe (struct device *dev );

πŸŽ€ ARGUMENTS πŸŽ€

  • dev β€” target device. that's the one u pass in, bestie 🫢

πŸ’– DESCRIPTION πŸ’–

So here's the tea: it returns true if dev has been marked as an "IRQ-safe" device (with respect to runtime PM) πŸ’…. In which case, its runtime PM callbacks can be expected to work correctly when invoked from interrupt handlers. periodt.

πŸ”₯ SEE ALSO πŸ”₯

The kernel file ./include/linux/pm_runtime.h is the source-y bestie for this one πŸ‘‘. also go peek at:


mwah πŸ’‹ β€” sourced from ./include/linux, with the manual's date/version showing October 2026. go be IRQ-safe, bestie πŸ§šπŸ’œ

πŸ“¦ where this page comes from