sdma_v5_2_emit_copy_buffer(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– sdma_v5_2_emit_copy_buffer(9) πŸ’–

okay so bestie, this page is from the Kernel API Manual, and it's all about sdma_v5_2_emit_copy_buffer β€” the copy-buffer moment for the sDMA engine. no cap, it's giving kernel API realness ✨


✨ NAME ✨

sdma_v5_2_emit_copy_buffer β€” copy buffer using the sDMA engine πŸ’…

πŸ’… SYNOPSIS πŸ’…

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

πŸŽ€ ARGUMENTS πŸŽ€

  • ib β€” the indirect buffer to copy to. that's the destination vibe 🫢
  • src_offset β€” src GPU address. literally the source GPU address, bestie πŸ’–
  • dst_offset β€” dst GPU address. yep, destination GPU address energy πŸ¦‹
  • byte_count β€” number of bytes to xfer. how many bytes are gonna xfer, periodt 🌸
  • copy_flags β€” copy flags for the buffers. the flags that come with the copy, iykyk πŸ’…

πŸ¦‹ DESCRIPTION πŸ¦‹

So this function copies GPU buffers using the DMA engine. it's used by the amdgpu ttm implementation to move pages if it's registered as the asic copy callback. that's the whole main character job, fr fr πŸ”₯

πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c β€” the source file, iconic πŸ‘‘


from ./drivers/gpu/drm/amd/amdgpu, dated October 2026 β€” bye bestie, mwah πŸ’‹πŸŽ€

πŸ“¦ where this page comes from