pm_runtime_status_suspended(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– pm_runtime_status_suspended ✨

okay bestie, welcome to the Kernel API Manual entry for pm_runtime_status_suspended β€” this one's short and sweet and honestly kind of a vibe.


🌸 NAME 🌸

pm_runtime_status_suspended β€” the little function that checks whether the runtime PM status is "suspended" πŸŽ€


✨ SYNOPSIS ✨

bool pm_runtime_status_suspended (struct device *dev );

🫢 ARGUMENTS 🫢

  • dev β€” the target device πŸ‘‘ like, the one you're asking about, no cap.

πŸ¦‹ DESCRIPTION πŸ¦‹

So here's the tea, bestie: this returns true if the runtime PM status of dev is RPM_SUSPENDED, and false otherwise. That's it. That's the whole function πŸ’…

And the iconically unbothered part? It does this regardless of whether or not runtime PM has been enabled for dev. She does not care. She is not checking that. Periodt. πŸ”₯

⚠️ okay but listen, this is the important bit and I need you to lock in: the return value of this function can only be trusted if it's called under the runtime PM lock of dev, or under conditions in which the runtime PM status of dev cannot change. Otherwise it's giving stale-info energy and you'll be sad 😭

πŸ’œ SEE ALSO πŸ’œ

Kernel file ./include/linux/pm_runtime.h β€” and the whole runtime PM friend group, fr fr:


πŸŽ€ a lil sign-off πŸŽ€

this page lives under ./include/linux in the Kernel API Manual, dated October 2026 β€” mwah, go check your device's status responsibly πŸ’–βœ¨πŸ§šβ€β™€οΈ

πŸ“¦ where this page comes from