__pm_runtime_idle(9)
π __pm_runtime_idle(9) π
Okay bestie, welcome to the Kernel API Manual page for __pm_runtime_idle π«Ά This is the runtime-idle entry point, and we're gonna get into it.
β¨ NAME β¨
__pm_runtime_idle β entry point for runtime idle operations. Periodt β¨
πΈ SYNOPSIS πΈ
int __pm_runtime_idle (struct device *dev , int rpmflags );
π ARGUMENTS π
devβ the device you're sending the idle notification for πrpmflagsβ flag bits π©
π¦ DESCRIPTION π¦
Okay so here's the tea β: if the RPM_GET_PUT flag is set, this routine decrements the device's usage count. If that count is larger than zero, it returns immediately. If it becomes negative, it logs a warning, increments the count, and returns an error. Then it carries out an idle notification, and that notification can be either synchronous or asynchronous. Slay π
This routine may be called in atomic context if the RPM_ASYNC flag is set, or if pm_runtime_irq_safe has been called. Those are the conditional vibes, so keep them in mind π
π₯ SEE ALSO π₯
- Kernel file
./drivers/base/power/runtime.c update_pm_runtime_accounting(9)pm_runtime_deactivate_timer(9)pm_runtime_cancel_pending(9)rpm_check_suspend_allowed(9)pm_runtime_release_supplier(9)__rpm_callback(9)rpm_callback(9)rpm_idle(9)rpm_suspend(9)rpm_resume(9)pm_runtime_work(9)pm_suspend_timer_fn(9)pm_schedule_suspend(9)__pm_runtime_suspend(9)__pm_runtime_resume(9)pm_runtime_get_conditional(9)pm_runtime_get_if_active(9)pm_runtime_get_if_in_use(9)__pm_runtime_set_status(9)__pm_runtime_barrier(9)pm_runtime_barrier(9)pm_runtime_enable(9)devm_pm_runtime_set_active_enabled(9)devm_pm_runtime_enable(9)devm_pm_runtime_get_noresume(9)pm_runtime_forbid(9)pm_runtime_allow(9)pm_runtime_no_callbacks(9)pm_runtime_irq_safe(9)update_autosuspend(9)pm_runtime_set_autosuspend_delay(9)__pm_runtime_use_autosuspend(9)pm_runtime_init(9)pm_runtime_reinit(9)pm_runtime_remove(9)pm_runtime_get_suppliers(9)pm_runtime_put_suppliers(9)pm_runtime_drop_link(9)pm_runtime_force_suspend(9)pm_runtime_force_resume(9)
And that's the whole page, bestie π«Ά It's from the Kernel API Manual, source/version ./drivers/base/power, dated October 2026, for __pm_runtime_idle(9). Slay π
β¨
π¦ 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