amdgpu_device_suspend(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ amdgpu_device_suspend πŸ’€

okay so bestie, welcome to the amdgpu_device_suspend(9) page β€” it lives in the Kernel API Manual and honestly it's a little short but she's iconic πŸ’…


πŸŽ€ NAME πŸŽ€

amdgpu_device_suspend β€” the one that initiates device suspend πŸ¦‹ like literally she starts the nap


🌸 SYNOPSIS 🌸

int amdgpu_device_suspend (struct drm_device *dev , bool notify_clients );

that's the whole signature, no cap ✨


πŸ’– ARGUMENTS πŸ’–

  • dev β€” the drm dev pointer 🫢 lowkey just your drm device, that's it
  • notify_clients β€” tells you whether to notify the in-kernel DRM clients πŸ“£ (yes, the ones already living in-kernel, not userspace bestie)

🌈 DESCRIPTION 🌈

So what does she actually do? She puts the hw in the suspend state β€” and yes, all asics, every single one of them, no exceptions πŸ”₯

She returns 0 for success or an error on failure, periodt. And she gets called at driver suspend, so she's main character energy for the whole suspend flow πŸ‘‘

ngl, this one's short but she's doing a LOT of work behind the scenes πŸ’€

πŸ¦‹ SEE ALSO πŸ¦‹

First up, the source vibe check πŸ’œ the kernel file lives at ./drivers/gpu/drm/amd/amdgpu/amdgpu_device.c

and then the whole friend group, iykyk:

that's the whole group chat, go say hi πŸ«ΆπŸ’œ


and that's the page bestie!! πŸ’…βœ¨ she comes to you from ./drivers/gpu/drm/amd/amdgpu, dated October 2026 β€” mwah, slay, go put that GPU to sleep πŸ˜΄πŸŽ€

πŸ“¦ where this page comes from