pm_runtime_set_active(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ pm_runtime_set_active ✨

okay so real quick β€” this is a page from the Kernel API Manual (pm_runtime_set_active(9)), and it's lowkey one of the shortest ones you'll ever read, which honestly? slay. less to memorize bestie πŸ’…


🌸 NAME 🌸

pm_runtime_set_active β€” set the runtime PM status to "active", periodt. ✨


πŸ¦‹ SYNOPSIS πŸ¦‹

int pm_runtime_set_active (struct device *dev );

πŸŽ€ ARGUMENTS πŸŽ€

  • dev β€” the target device. the one we're doing the whole vibe check on 🫢

πŸ’– DESCRIPTION πŸ’–

so what this does is: it sets the runtime PM status of dev to RPM_ACTIVE, and it makes sure that the dependencies of it are gonna be taken into account. like, not ignored, not forgotten β€” accounted for. main character energy for the dependency graph ngl πŸ‘‘

⚠️ but here's the part where you gotta pay attention bestie: it is not valid to call this function for devices that have runtime PM enabled. like. not a vibe. don't do it. πŸ’€

🌈 SEE ALSO 🌈

kernel file ./include/linux/pm_runtime.h β€” and like, the whole extended friend group πŸ’œ:


and that's the whole page, bestie β€” short, sweet, iconic πŸ“ this one lives over in ./include/linux and it's dated October 2026, so jot that down, and go forth and set your runtime PM status responsibly πŸ’–βœ¨πŸ§š

πŸ“¦ where this page comes from