pm_runtime_remove(9)
πΈ pm_runtime_remove β bestie, it's time to say goodbye π
okay so real talk: this page is from the Kernel API Manual, and it's about the one little cleanup step you do when a device is peacing out of the device hierarchy forever. no cap, it's a short one, so let's go π«Ά
β¨ NAME β¨
pm_runtime_remove β get everything ready for yeeting a device out of the device hierarchy π
π SYNOPSIS π
void pm_runtime_remove (struct device *dev );
that's it. that's the whole signature. she's simple, she's iconic π
π ARGUMENTS π
devβ the device object that's being removed from the device hierarchy. this is the main character of the operation, the one getting un-alived (from the hierarchy) π¦
π₯ SEE ALSO π₯
bestie there are so many siblings, this function has a whole extended family, and honestly? they all ate. go read these next, iykyk:
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_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_get_suppliers(9)pm_runtime_put_suppliers(9)pm_runtime_drop_link(9)pm_runtime_force_suspend(9)pm_runtime_force_resume(9)
and if you wanna see where the magic actually lives, it's right here in the kernel file:
./drivers/base/power/runtime.c
ngl the vibes here are very "last day of school energy" β the device is leaving, and pm_runtime_remove is the friend helping pack the boxes πβ¨
that's the whole page, bestie, you ate that π β mwah, this one's served fresh from ./drivers/base/power, dated October 2026 π¦β
π¦ 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