pm_runtime_enabled(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ pm_runtime_enabled ✨

okay so this is a page from the Kernel API Manual, bestie β€” it's pm_runtime_enabled(9) and it's literally the vibe-check function for runtime power management πŸ’…

🌸 NAME 🌸

pm_runtime_enabled β€” check if runtime PM is enabled.

πŸ¦‹ SYNOPSIS πŸ¦‹

bool pm_runtime_enabled (struct device *dev );

πŸŽ€ ARGUMENTS πŸŽ€

  • dev β€” the target device. like, the actual device you're asking about 🫢

πŸ’œ DESCRIPTION πŸ’œ

Returns true if runtime PM is enabled for dev, or false otherwise. That's it. That's the whole thing. iconic, honestly ✨

⚠️ but bestie, listen β€” 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. no cap. if you're out here calling it raw with no lock and no guarantee, the answer you get back is giving ✨delusion✨, not truth 😭

πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./include/linux/pm_runtime.h, plus this whole entire squad right here πŸ‘‘


and that's the whole page, bestie!! 🧚 this lil beauty lives in ./include/linux and the version stamp says October 2026 β€” so like, future-coded of it fr fr πŸ’– go forth and check your runtime PM state responsibly, mwah πŸŽ€πŸ’‹

πŸ“¦ where this page comes from