pm_runtime_init(9)
π pm_runtime_init(9) β Kernel API Manual, bestie edition π
okay so picture this: you're in the kernel, you've got a shiny new struct device, and its runtime PM fields are just... sitting there. empty. uninitialized. not a vibe. that's literally what this function is for. welcome to pm_runtime_init π¦
β¨ NAME β¨
pm_runtime_init β initializes the runtime PM fields inside a given device object. that's it. that's the whole job. and she does it flawlessly π
πΈ SYNOPSIS πΈ
void pm_runtime_init (struct device *dev );
π ARGUMENTS π
devβ the device object you want to initialize, bestie. hand it over and let her cook π«Ά
π₯ SEE ALSO π₯
okay this list is LONG but we do not skip a single one, periodt. every single one of these is in the family, and you're gonna go say hi to all of them:
- the kernel file
./drivers/base/power/runtime.cβ that's where she lives, 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_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, the whole runtime PM friend group showed up. main character energy all around π
ngl, the synopsis is literally one line. no flags, no return value drama, no environment variables to memorize. she's simple, she's iconic, she slays. sometimes that's all you need fr fr π
okay that's the whole page bestie, go initialize something and be great π β written from ./drivers/base/power, dated October 2026, and that's the cute little sign-off πβ¨π
π¦ 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