update_autosuspend(9)
update_autosuspend(9) π
okay so bestie, welcome to the Kernel API Manual page for update_autosuspend(9) β we're handling a change to a device's autosuspend settings and yes, it's giving very specific kernel-core energy β¨
π NAME π
update_autosuspend β handles a change to a device's autosuspend settings. That's the whole name vibe, no cap π
β¨ SYNOPSIS β¨
void update_autosuspend (struct device *dev , int old_delay , int
old_use );
π¦ ARGUMENTS π¦
devβ the device to handle. That's the main character here π«Άold_delayβ the formerautosuspend_delayvalue, iykyk.old_useβ the formeruse_autosuspendvalue, periodt.
π DESCRIPTION π
So here's the situation, bestie: runtime suspend gets prevented if the new delay is negative and use_autosuspend is set; otherwise it's allowed. And if suspends are allowed, an idle notification gets sent. That's the tea ββ¨
β οΈ Important, fr fr: this function must be called under dev->power.lock with interrupts disabled. Not optional, not a little suggestion, not a vibe β like, actually do it π
π SEE ALSO π
okay these are the related pages and the kernel file, all linked up like a very niche group chat π
- Kernel file:
./drivers/base/power/runtime.c 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)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)
xoxo, your kernel bestie π this page is signed off from ./drivers/base/power, October 2026. slay and stay cozy πΈ
π¦ 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