pm_request_autosuspend(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ pm_request_autosuspend(9) ✨

okay bestie, welcome to the pm_request_autosuspend page πŸ’– this one lives in the Kernel API Manual (that's the 9 section, kernel API girlies rise 🫢), and ngl it's short, sweet, and kind of iconic? like it does one job and does it slayfully ✨

It's the one that bumps a device's last access time and queues up an autosuspend for later. main character energy fr fr πŸ‘‘


🌸 NAME 🌸

pm_request_autosuspend β€” updates the last access time, and then queues up an autosuspend of a device. that's the whole vibe πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

int pm_request_autosuspend (struct device *dev );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • dev β€” the target device 🎯 like, the device you're doing this to. the one getting the autosuspend treatment.

πŸ’œ DESCRIPTION πŸ’œ

So here's the tea β˜•: this function updates the last access time of a device, and then it queues up a work item so that an equivalent pm_runtime_autosuspend for dev runs asynchronously. lowkey, that's it. that's the whole function. it's giving "set it and forget it" ✨

note the word asynchronously β€” it gets queued as a work item, it doesn't happen right this second. respect the queue bestie 😌

⭐ RETURN ⭐

the return values, and honestly there are a lot of them, so buckle up πŸ’€

  • 1 β€” Success! πŸŽ‰ and specifically: the device was already suspended. so like, success but it was already chilling.
  • 0 β€” Success. plain and simple, no notes πŸ‘‘
  • -EINVAL β€” Runtime PM error 😭
  • -EACCES β€” Runtime PM is disabled πŸ™ˆ
  • -EAGAIN β€” the Runtime PM usage counter is non-zero, or a Runtime PM status change is ongoing πŸŒ€
  • -EBUSY β€” the Runtime PM child_count is non-zero πŸ‘Ά like, the children said not yet
  • -EPERM β€” Device PM QoS resume latency is 0 🚫
  • -EINPROGRESS β€” a suspend is already in progress ⏳ we're already doing this!!
  • -ENOSYS β€” CONFIG_PM is not enabled πŸ’€ no config, no service

🌈 SEE ALSO 🌈

this list is LONG bestie, grab a snack πŸ“ β€” and heads up, it's all sourced from the kernel file ./include/linux/pm_runtime.h:


and that's the whole page!! 🧚 no cap, go autosuspend something responsibly πŸ’–

sign-off time: this lil masterpiece comes to you from ./include/linux πŸ“ and it's dated October 2026 πŸ—“οΈ β€” it's giving future icon. mwah πŸ’‹ periodt πŸŽ€
πŸ“¦ where this page comes from