pm_runtime_use_autosuspend(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– pm_runtime_use_autosuspend(9) πŸ’–

okay so this lil icon is straight out of the Kernel API Manual, and it is literally the β€œyes bestie, autosuspend is allowed” switch for a device. let’s go ✨

🌸 NAME 🌸

pm_runtime_use_autosuspend β€” Allow autosuspend to be used for a device. periodt πŸ’…

πŸ¦‹ SYNOPSIS πŸ¦‹

void pm_runtime_use_autosuspend (struct device *dev );

πŸŽ€ ARGUMENTS πŸŽ€

  • dev β€” Target device. that’s the one this whole autosuspend moment is for πŸ‘‘

πŸ’« DESCRIPTION πŸ’«

okay so this function allows the runtime PM autosuspend mechanism to be used for dev whenever requested. if it isn’t allowed, β€œautosuspend” will be handled as direct runtime-suspend for it. no cap, that’s the whole vibe 🫢

⚠️ NOTE ⚠️

bestie, it is important to undo this with pm_runtime_dont_use_autosuspend at driver exit time β€” unless your driver initially enabled pm_runtime with devm_pm_runtime_enable (which handles it for you). do not leave this hanging, fr fr 😭

🌈 SEE ALSO 🌈

the kernel file is ./include/linux/pm_runtime.h, and the whole squad is:


okay that’s a wrap, bestie πŸŽ€ source/version check: ./include/linux; date check: October 2026. slay and stay suspended responsibly πŸ’–βœ¨πŸ’œ

πŸ“¦ where this page comes from