sdma_v6_0_emit_copy_buffer(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… sdma_v6_0_emit_copy_buffer

okay so bestie, welcome to the Kernel API Manual ✨ this one's a function page and it's lowkey iconic β€” it's all about making the sDMA engine do a copy for you. no cap, it's a whole vibe.


πŸ¦‹ NAME

sdma_v6_0_emit_copy_buffer β€” copy buffer using the sDMA engine πŸ’–


✨ SYNOPSIS

void sdma_v6_0_emit_copy_buffer (struct amdgpu_ib *ib , uint64_t
src_offset , uint64_t dst_offset , uint32_t byte_count , uint32_t
copy_flags );

like… that's the whole signature, she's right there πŸ‘‘


πŸŽ€ ARGUMENTS

  • ib β€” the indirect buffer you're gonna fill with commands 🫢 literally the canvas, the main character
  • src_offset β€” src GPU address. where the tea is coming from πŸ’«
  • dst_offset β€” dst GPU address. where it's going, slay 🎯
  • byte_count β€” number of bytes to xfer πŸ“¦ the actual amount, don't fumble it
  • copy_flags β€” copy flags for the buffers 🚩 the little settings that come along for the ride

🌸 DESCRIPTION

Copy GPU buffers using the DMA engine ✨ that's it, that's the job.

It's used by the amdgpu ttm implementation to move pages β€” but only if it's registered as the asic copy callback πŸ‘€ so like, conditional queen behavior, iykyk.


πŸ’œ SEE ALSO

Kernel file ./drivers/gpu/drm/amd/amdgpu/sdma_v6_0.c β€” go read the source bestie, it's giving lore πŸ“–


and that's the whole page bestie, no notes πŸ’…

okayyy sign-off time πŸŽ€ this lil masterpiece lives in ./drivers/gpu/drm/amd/amdgpu, dated October 2026, and it's literally sdma_v6_0_emit_copy_buffer(9) β€” periodt πŸ’–βœ¨πŸ¦‹

πŸ“¦ where this page comes from