pm_runtime_suspended(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ pm_runtime_suspended(9) ✨

okay so bestie, welcome to the Kernel API Manual πŸ’– this one is a lil function from the <linux/pm_runtime.h> cinematic universe and honestly? she's giving "quick vibe check, don't trust me outside the group chat" energy. let's get into it πŸŽ€


🌸 NAME 🌸

pm_runtime_suspended β€” literally just checks whether or not a device is runtime-suspended πŸ¦‹


🌈 SYNOPSIS 🌈

bool pm_runtime_suspended (struct device *dev );

πŸ’« ARGUMENTS πŸ’«

  • dev β€” the target device, aka the main character of this little story πŸ‘‘

🧚 DESCRIPTION 🧚

so basically: this returns true if runtime PM is enabled for dev and its runtime PM status is RPM_SUSPENDED. any other situation? false, periodt. πŸ’…

⚠️ okay this part is important, no cap: 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 runtime PM cannot be either disabled or enabled for dev and its runtime PM status cannot change. like, she's not lying to you, she just only knows what she knew at that exact moment 😭 so if the status could be shifting under your feet, bestie, don't come crying to her about it.

🌟 SEE ALSO 🌟

the whole squad shows up for this one, so let's give them their shoutouts 🫢 the kernel file ./include/linux/pm_runtime.h and:

like that is a lot of siblings but every single one of them ate πŸ”₯


and that's the whole page, bestie!! tysm for reading, mwah πŸ’‹ this icon lives under ./include/linux with an October 2026 date stamp, brought to you by the Kernel API Manual itself β€” go forth and check your runtime PM status responsibly, ily πŸ§šβ€β™€οΈπŸ’œπŸŽ€

πŸ“¦ where this page comes from