pm_runtime_active(9)
β¨ pm_runtime_active β the kernel API manual, but make it make sense β¨
okay so bestie, you're in the pm_runtime_active(9) page of the Kernel API Manual and honestly? it's a short one, we love a low-effort icon π
let's get into it.
π NAME π
pm_runtime_active β literally just checks whether a device is runtime-active. that's it. that's the whole job.
π¦ SYNOPSIS π¦
bool pm_runtime_active (struct device *dev );
yes she returns a bool, she takes one pointer, she's lowkey iconic for how simple she is β¨
πΈ ARGUMENTS πΈ
devβ the target device. the one you're side-eyeing. the main character of this whole function, fr fr π«Ά
π DESCRIPTION π
okay so here's the tea: this one returns true if runtime PM is disabled for dev, OR if its runtime PM status is RPM_ACTIVE. anything else? false. periodt π
β οΈ now this is the important part, don't scroll past it: the return value of this function can only be trusted if you call it under the runtime PM lock ofdev, OR under conditions where runtime PM can't be either disabled or enabled fordevand its runtime PM status cannot change. like, that's the whole vibe check on whether the answer means anything. no cap. if neither of those is true, the answer is giving "made up" π
π₯ SEE ALSO π₯
Kernel file ./include/linux/pm_runtime.h and the whole extended universe of runtime PM friends β go read these next, iykyk:
pm_suspend_ignore_children(9)pm_runtime_get_noresume(9)pm_runtime_put_noidle(9)pm_runtime_suspended(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_active(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!! this one lives at ./include/linux in the kernel tree, dated October 2026, so go be careful with your locks and stay hydrated ππ§
π¦ 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