pm_runtime_allow(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ pm_runtime_allow(9) β€” from the Kernel API Manual ✨

ok so we're deep in the kernel docs rn, and this one is a function called pm_runtime_allow β€” it's literally in the Kernel API Manual, bestie, we're doing Big Kernel Things today πŸ’…


🌸 NAME 🌸

pm_runtime_allow β€” Unblock runtime PM of a device. that's it, that's the whole vibe 🫢


πŸ¦‹ SYNOPSIS πŸ¦‹

void pm_runtime_allow (struct device *dev );

πŸŽ€ ARGUMENTS πŸŽ€

  • dev β€” Device to handle. like, the device you're doing this to. the main character device, if you will πŸ‘‘

πŸ’– DESCRIPTION πŸ’–

okay so picture this: your dev got its runtime suspend blocked at some point β€” probz by pm_runtime_forbid (for instance, if it's been blocked via the /sys/devices/.../power/control interface, iykyk). this function is the ✨unblocking✨ moment.

pm_runtime_allow unblocks runtime suspend of dev after it's been blocked like that, then it checks whether dev can actually be suspended β€” and if it can, it suspends it right then and there. no cap. πŸ”₯

and here's a fun little detail: calling this function many times in a row? same effect as calling it once. so spam it if you want, it's lowkey idempotent 🫢 not me being obsessed with a repeat-safe API.


🌈 SEE ALSO 🌈


that's the whole page, bestie β€” no hidden sections, no jump scares πŸ™ˆ

ok bye, this page lives under ./drivers/base/power and it's dated October 2026 β€” so like, future-coded but make it kernel. mwah, slay, periodt πŸ’‹πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from