update_autosuspend(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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 former autosuspend_delay value, iykyk.
  • old_use β€” the former use_autosuspend value, 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 πŸ‘‘


xoxo, your kernel bestie πŸ’– this page is signed off from ./drivers/base/power, October 2026. slay and stay cozy 🌸

πŸ“¦ where this page comes from