pm_runtime_barrier(9)
π NAME π
okay so this is the manual page for pm_runtime_barrier(9) from the Kernel API Manual, and bestie it is literally here to flush pending requests and wait for completions. periodt π
β¨ SYNOPSIS β¨
void pm_runtime_barrier (struct device *dev );
no cap, it returns void, so there's no return value to obsess over. π«Ά
π ARGUMENTS π
devβ the device to handle. that's the one, bestie π
π¦ DESCRIPTION π¦
okay so here's the vibe: this function prevents the device from being suspended by incrementing its usage counter, and if there's a pending resume request for the device, it wakes the device up. πΈ
Next, it makes sure that all pending requests for the device have been flushed from pm_wq, and it waits for all runtime PM operations involving the device in progress to complete. like, all of them. fully done. no leftovers. β¨
iykyk: this is the "flush the pending stuff and wait for the in-progress runtime PM ops to finish" moment. main character energy for real. π
π SEE ALSO π
- Kernel file:
./drivers/base/power/runtime.c - the SEE ALSO squad, part one:
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) - the SEE ALSO squad, part two:
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) - the SEE ALSO squad, part three:
__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) - the SEE ALSO squad, part four:
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)
k bye bestie β this page's source/version is ./drivers/base/power, and the date on it is October 2026. mwah πβ¨
π¦ 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