pm_runtime_set_suspended(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ pm_runtime_set_suspended β€” Kernel API Manual ✨

okay so bestie, we're in the Kernel API Manual today and the star of the show is pm_runtime_set_suspended(9) πŸ’… buckle up, it's a short one but it's lowkey important.


🌸 NAME 🌸

pm_runtime_set_suspended β€” the function that sets your runtime PM status to "suspended". that's it, that's the vibe 🫢


πŸ¦‹ SYNOPSIS πŸ¦‹

int pm_runtime_set_suspended (struct device *dev );

πŸŽ€ ARGUMENTS πŸŽ€

  • dev β€” the target device. the main character of this whole operation πŸ‘‘

πŸ’– DESCRIPTION πŸ’–

So what does it do? It sets the runtime PM status of dev to RPM_SUSPENDED, and it makes sure that any dependencies of it get taken into account. not me making sure your whole dependency situation is handled, no cap πŸ’…

⚠️ big warning bestie, read this twice: it is not valid to call this function for devices with runtime PM enabled. like, fr fr, don't do it. that's a no-go zone πŸ™ˆπŸ’€

🌈 SEE ALSO 🌈

a whole friend group of related calls, all living over in the kernel file ./include/linux/pm_runtime.h ✨


🫢 that's the whole page, queen. this one lives in ./include/linux and it's stamped October 2026 β€” iconic, timeless, iconic. mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from