pm_runtime_work(9)
π pm_runtime_work(9) β the universal runtime PM work function, bestie
okay so this is from the Kernel API Manual and it's literally the group chat of power management β one work function to rule them all β¨
πΈ SYNOPSIS πΈ
void pm_runtime_work (struct work_struct *work );
like, that's it. that's the whole signature. no cap π«Ά
π ARGUMENTS π
workβ the work structure bestie, the one used for scheduling the execution of this function. it's giving "your ticket into the function", periodt π
β¨ DESCRIPTION β¨
okay so the vibe here: you take work, and you use it to get the device object the work is to be done for π then you figure out what's to be done, and then you execute the appropriate runtime PM function. that's the whole flow. determine β execute β slay. no notes π₯
it's a universal runtime PM work function, so it's lowkey the main character energy of the runtime PM work queue β one entry point handling whatever the work struct says needs to happen π
π¦ SEE ALSO π¦
so there's a whole friend group here, and honestly the roster is iconic:
- Kernel file
./drivers/base/power/runtime.cβ the source file, the mothership π 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_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)
iykyk π that's a lot of besties but every single one of them is linked π
ngl there's no exit status, no environment variables, no error codes on this one β it's void, she simply returns nothing and doesn't explain herself π
k that's the whole page bestie π this came out of ./drivers/base/power, dated October 2026, and it's the Kernel API Manual's own pm_runtime_work(9) β go forth and schedule 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