cik_sdma_emit_copy_buffer(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ‘‘ cik_sdma_emit_copy_buffer(9) β€” the Kernel API Manual, bestie edition ✨

okay so this is a page out of the Kernel API Manual and honestly? it's giving "small function, big responsibilities" energy. sit down, grab a πŸ“, we're learning how the sDMA engine copies buffers πŸ’…


🌸 NAME 🌸

cik_sdma_emit_copy_buffer β€” copy buffer using the sDMA engine ✨


πŸ¦‹ SYNOPSIS πŸ¦‹

void cik_sdma_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 vibe. void return, five args, no drama πŸŽ€


πŸ’– ARGUMENTS πŸ’–

  • ib β€” the indirect buffer we're copying to. this is the destination of the emit, not the copy, don't get it twisted 🫢
  • src_offset β€” the src GPU address (where the bytes are coming from) ⭐
  • dst_offset β€” the dst GPU address (where they're going to) 🌈
  • byte_count β€” number of bytes to xfer, a uint32_t, so yes the count has a ceiling, no cap 🧒
  • copy_flags β€” unused. literally unused. it's there, it's invited, it does nothing πŸ™ˆ

πŸ”₯ DESCRIPTION πŸ”₯

so what it does: it copies GPU buffers using the DMA engine (CIK). that's it, that's the whole thing πŸ’€

and who's out here calling it? the amdgpu ttm implementation, to move pages β€” but only if this thing is registered as the asic copy callback. main character energy, but conditional πŸ‘‘

ngl if you're reading this expecting extra lore, there isn't any β€” the original page is short and sweet and we respect that πŸŽ€

🌟 SEE ALSO 🌟

first up, the kernel file it lives in β€” go read the source, bestie, it's right there:

  • Kernel file ./drivers/gpu/drm/amd/amdgpu/cik_sdma.c

and then the whole friend group πŸ˜­πŸ’œ:


✨ and that's the page!! ✨ this came to you from the source dir ./drivers/gpu/drm/amd/amdgpu, dated October 2026, and it's the cik_sdma_emit_copy_buffer(9) page β€” go copy some buffers, bestie, you're gonna slay πŸ’…πŸ«ΆπŸ’–

πŸ“¦ where this page comes from