sdma_v4_4_2_..._copy_buffer(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… sdma_v4_4_2_emit_copy_buffer πŸ’…

okay so this is a page from the Kernel API Manual bestie, and it's all about sdma_v4_4_2_emit_copy_buffer β€” say that five times fast, i literally can't 😭


✨ NAME ✨

sdma_v4_4_2_emit_copy_buffer β€” copy buffer using the sDMA engine 🫢


🌸 SYNOPSIS 🌸

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

like, yes, that's the whole signature, no cap πŸ’€


πŸŽ€ ARGUMENTS πŸŽ€

  • ib β€” indirect buffer to copy to. this is the destination of the command, not the data, before u get confused bestie πŸ’–
  • src_offset β€” src GPU address πŸ‘‘
  • dst_offset β€” dst GPU address πŸ‘‘
  • byte_count β€” number of bytes to xfer. yes "xfer", that's what it says, i don't make the rules πŸ¦‹
  • copy_flags β€” copy flags for the buffers ✨

🧚 DESCRIPTION 🧚

so what does it do? it copies GPU buffers using the DMA engine, literally that's it, main character energy πŸ”₯

and like, the important lore: it's used by the amdgpu ttm implementation to move pages if it's registered as the asic copy callback. that "if" is doing so much work, pay attention to it πŸ™ˆ


🌈 SEE ALSO 🌈

the kernel file lives at ./drivers/gpu/drm/amd/amdgpu/sdma_v4_4_2.c β€” go read it iykwim πŸ’…

and here's the whole friend group, all of them, every single one, i'm not skipping anybody 🫢:


πŸ’€ ok real talk: hierarchy is sdma_v4_4_2 β†’ emit_copy_buffer, everything else is a sibling. keep them straight and ur fine ✨

and that's the page bestie, mwah πŸŽ€ this came out of ./drivers/gpu/drm/amd/amdgpu, dated October 2026, and yes it's giving "kernel docs meet group chat" β€” slay, periodt, go move some pages πŸ’œπŸ¦‹

πŸ“¦ where this page comes from