sdma_v3_0_emit_fill_buffer(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’« sdma_v3_0_emit_fill_buffer(9) πŸ’«

okay so bestie, welcome to the Kernel API Manual ✨ β€” yes that's the whole manual name, we're fancy here β€” and today's main character is sdma_v3_0_emit_fill_buffer, which is literally the function that fills a buffer using the sDMA engine. no cap. πŸŽ€


🌸 NAME 🌸

sdma_v3_0_emit_fill_buffer β€” fill buffer using the sDMA engine πŸ’…


✨ SYNOPSIS ✨

void sdma_v3_0_emit_fill_buffer (struct amdgpu_ib *ib , uint32_t
src_data , uint64_t dst_offset , uint32_t byte_count );

like, that's the whole vibe check. void return, four args, no drama. πŸ¦‹


🫢 ARGUMENTS 🫢

  • ib β€” the indirect buffer we're copying to. this is the destination bestie, the one getting the glow-up. πŸ’–
  • src_data β€” the value we're writing into the buffer. this is the content, the personality, the lore. 🌟
  • dst_offset β€” the dst GPU address. that's where in GPU-land this whole thing lands, fr fr. πŸ“
  • byte_count β€” number of bytes to xfer. how much of the good stuff is traveling. πŸ“¦

πŸ’œ DESCRIPTION πŸ’œ

Fill GPU buffers using the DMA engine (VI). that's it, that's the whole description β€” short and iconic, she ate and left no crumbs. πŸ”₯

so yeah: you hand her an indirect buffer, a value, a GPU address, and a byte count, and she emits the fill through the sDMA engine on VI. simple. efficient. slay. πŸ‘‘


🌈 SEE ALSO 🌈

okay this section is long and honestly she's a social butterfly, so let's get into it. first, the kernel file where all this lives:

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

and now the whole friend group, in order, because we don't skip anyone in this house 🫢:


bestie note: sdma_v3_0_emit_copy_buffer(9) is her sibling, the copy girlie β€” fill and copy, two different jobs, don't mix them up iykyk πŸ’€

mwah πŸ’‹ that's the page! sourced straight from ./drivers/gpu/drm/amd/amdgpu and dated October 2026 β€” yes, the future, we're early, we're always early πŸ§šβ€β™€οΈβœ¨ bye bestie, go fill some buffers πŸ’–πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from