rpm_check_suspend_allowed(9)
π€ rpm_check_suspend_allowed(9) β the "can u nap tho" check π€
okay so this is a page straight out of the Kernel API Manual, bestie, and it's all about the runtime power management girlies. The manual name is literally rpm_check_suspend_allowed(9) β say that five times fast, i dare u. π«Ά
β¨ NAME β¨
rpm_check_suspend_allowed β literally just: test whether a device may be suspended. that's it. that's the whole vibe check. π
πΈ SYNOPSIS πΈ
int rpm_check_suspend_allowed (struct device *dev );
π ARGUMENTS π
devβ the device u wanna test. the main character of this whole function, fr fr. π¦
π SEE ALSO π
okay this is the long part and i'm not skipping a single one of these, because every single one of them is iconic in its own way. the kernel file lives at ./drivers/base/power/runtime.c, and then we got the whole friend group:
update_pm_runtime_accounting(9)pm_runtime_deactivate_timer(9)pm_runtime_cancel_pending(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_idle(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)
like, that's the whole squad. go read them. iykyk. πβ¨
lowkey reminder bestie: the page you're reading is from./drivers/base/power, dated October 2026, and it's forrpm_check_suspend_allowed(9). no cap. π«Ά
k that's the whole page, mwah, go suspend some devices 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