sdma_v2_4_emit_copy_buffer(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 sdma_v2_4_emit_copy_buffer 🌸

okay so bestie, this is a page from the Kernel API Manual β€” it's all about sdma_v2_4_emit_copy_buffer(9), and honestly? it's giving "small function, big job" energy πŸ’…


✨ NAME ✨

sdma_v2_4_emit_copy_buffer β€” copy buffer using the sDMA engine 🫢


πŸŽ€ SYNOPSIS πŸŽ€

void sdma_v2_4_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, no cap. returns void, so it's not gonna hand you back anything β€” it just does the thing ✨


πŸ’– ARGUMENTS πŸ’–

  • ib β€” the indirect buffer we're copying to. your destination-in-code, iykyk πŸ¦‹
  • src_offset β€” the src GPU address πŸ‘‘
  • dst_offset β€” the dst GPU address 🌈
  • byte_count β€” how many bytes to xfer, literally the amount of stuff we're moving πŸ“¦
  • copy_flags β€” unused 😭 yeah babe it's just sitting there, vibing, doing nothing

πŸ”₯ DESCRIPTION πŸ”₯

So basically: this copies GPU buffers using the DMA engine (VI). πŸš€

It's used by the amdgpu ttm implementation to move pages if it's registered as the asic copy callback. That's the whole vibe check β€” it's a callback, so it only gets called when the setup says so 🧚


πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c β€” the main character herself πŸ’€

like a whole friend group honestly, all of them iconic in their own way πŸ«ΆπŸ’œ


it lives in ./drivers/gpu/drm/amd/amdgpu β€” that's the neighborhood, bestie 🏑

alright that's the whole page!! brought to you by the Kernel API Manual, dated October 2026, and the page is literally called sdma_v2_4_emit_copy_buffer(9) β€” slay, go move some pages πŸ’…βœ¨πŸŽ€

πŸ“¦ where this page comes from