amdgpu_device_switch_gang(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… amdgpu_device_switch_gang(9) πŸ’…

okay so this is the amdgpu_device_switch_gang(9) page from the Kernel API Manual, and it's lowkey a tiny little baddie. Let's get into it, bestie 🫢


🌸 NAME 🌸

amdgpu_device_switch_gang β€” switch to a new gang. That's the whole name. Iconic, concise, no notes ✨


✨ SYNOPSIS ✨

the signature is giving very much kernel C, and it is exactly this:

struct dma_fence * amdgpu_device_switch_gang (struct amdgpu_device *adev
, struct dma_fence *gang );

πŸŽ€ ARGUMENTS πŸŽ€

  • adev β€” amdgpu_device pointer. yes ma'am, the device pointer πŸ’–
  • gang β€” the gang to switch to. that's the actual parameter name, I don't make the rules πŸ’…

πŸ¦‹ DESCRIPTION πŸ¦‹

Try to switch to a new gang.

That's it. That's the description. No extra lore in the manual, so I'm not gonna invent any technical claims β€” periodt πŸ’€


🎁 RETURN 🎁

NULL if we switched to the new gang or a reference to the current gang leader. that's the return tea, bestie πŸ“


🌈 SEE ALSO 🌈

the whole squad, do not skip a single one, iykyk:


mwah πŸ’‹ β€” source/version: ./drivers/gpu/drm/amd/amdgpu; date: October 2026. catch u in amdgpu_device_switch_gang(9) land 🫢

πŸ“¦ where this page comes from