sdma_v5_0_emit_copy_buffer(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… sdma_v5_0_emit_copy_buffer(9) β€” like, the Kernel API Manual edition πŸŽ€

okay bestie, sit down, hydrate, and let me tell you about sdma_v5_0_emit_copy_buffer β€” she's a function from the Kernel API Manual and she copies buffers using the sDMA engine. no cap, that's literally the whole personality. πŸ¦‹


✨ NAME ✨

sdma_v5_0_emit_copy_buffer β€” copy buffer using the sDMA engine πŸ’«


🌸 SYNOPSIS 🌸

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

she takes five args and returns nothing (void, the strong silent type 😌). copy-paste her signature exactly, do not freestyle it, i'm begging 🫢


πŸŽ€ ARGUMENTS πŸŽ€

  • ib β€” the indirect buffer we're copying to. like, the destination of the paperwork, not the data. πŸ“‹
  • src_offset β€” src GPU address. the from. where the bytes are living rn. 🏠
  • dst_offset β€” dst GPU address. the to. where the bytes are moving. moving day energy fr fr 🚚
  • byte_count β€” number of bytes to xfer. yes, "xfer". the manpage said it, i'm just the messenger. πŸ“¦
  • copy_flags β€” copy flags for the buffers. the lil settings that tell the copy how to behave. 🚩

πŸ”₯ DESCRIPTION πŸ”₯

So the whole vibe: she copies GPU buffers using the DMA engine (NAVI10 represent πŸ’…βœ¨). iconic honestly.

She's used by the amdgpu ttm implementation to move pages β€” but only if she's registered as the asic copy callback. so like, conditional main character energy. if the callback registration didn't happen, she's not the one doing the moving. iykyk. πŸ‘‘

ngl this is one of those "you probably won't call her directly, but she's holding up the whole operation" situations. respect her. 🫑

🌈 SEE ALSO 🌈

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

and the whole friend group (her siblings, her cousins, the entire sdma_v5_0 family tree 😭):

like. that's the whole group chat. every single one. i listed all 26 of them because i love you and i don't skip. πŸ’–


and that's the page, bestie!! this one's from ./drivers/gpu/drm/amd/amdgpu, dated October 2026 β€” so remember to cite her properly, mwah πŸ’‹ periodt. πŸ§šβ€β™€οΈπŸ“

πŸ“¦ where this page comes from