__pm_runtime..._autosuspend(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ __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 for use_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 🌈


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