__pm_runtime..._autosuspend(9)
β¨ __pm_runtime..._autosuspend(9) β¨
okay so bestie, welcome to the Kernel API Manual section of your life π this one is short, sweet, and honestly kind of a baddie for how much it does with so little. it's all about flipping one little flag and letting the runtime PM machinery do its thing. no cap.
πΈ NAME πΈ
__pm_runtime_use_autosuspend β sets a device's use_autosuspend flag. that's it. that's the whole job. iconic minimalism, honestly π
π¦ SYNOPSIS π¦
void __pm_runtime_use_autosuspend (struct device *dev , bool use );
like look at that signature. two args, zero drama β¨
π ARGUMENTS π
devβ the device you're handling, aka the main character of this operation π«Άuseβ the new value foruse_autosuspend. so: your new truth. your new setting. pick wisely π
π₯ DESCRIPTION π₯
okay so what this does is it sets the device's power.use_autosuspend flag β and then it allows or prevents runtime suspends as needed. that's the whole vibe check. you set the flag, the runtime PM core adjusts whether suspends can happen based on what you said. slay π§
ngl, it's giving "small function, big responsibilities" β the flag is tiny but the suspend-permission consequences are real. periodt π
π SEE ALSO π
the source lives in the kernel file ./drivers/base/power/runtime.c, and there is so much family here β like genuinely this is the whole runtime PM group chat π
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_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)
mwah π that's the whole page. short, useful, and honestly she ate.
kisses from ./drivers/base/power, dated October 2026 β go read the source bestie, it's right there π
π¦ 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