pm_runtime_set_active(9)
β¨ 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 π:
pm_suspend_ignore_children(9)pm_runtime_get_noresume(9)pm_runtime_put_noidle(9)pm_runtime_suspended(9)pm_runtime_active(9)pm_runtime_status_suspended(9)pm_runtime_enabled(9)pm_runtime_blocked(9)pm_runtime_has_no_callbacks(9)pm_runtime_mark_last_busy(9)pm_runtime_is_irq_safe(9)pm_runtime_idle(9)pm_runtime_suspend(9)pm_runtime_autosuspend(9)pm_runtime_resume(9)pm_request_idle(9)pm_request_resume(9)pm_request_autosuspend(9)pm_runtime_get(9)pm_runtime_get_sync(9)pm_runtime_resume_and_get(9)pm_runtime_put(9)__pm_runtime_put_autosuspend(9)pm_runtime_put_autosuspend(9)pm_runtime_put_sync(9)pm_runtime_put_sync_suspend(9)pm_runtime_put_sync_autosuspend(9)pm_runtime_set_suspended(9)pm_runtime_disable(9)pm_runtime_use_autosuspend(9)pm_runtime_dont_use_autosuspend(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms