sdma_v5_2_emit_fill_buffer(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… sdma_v5_2_emit_fill_buffer β€” from the Kernel API Manual, bestie

okay so bestie, gather round, because today we're talking about sdma_v5_2_emit_fill_buffer β€” a function living its best life in the Kernel API Manual (section 9, the kernel-API girlies πŸŽ€). This is the "fill buffer using the sDMA engine" one. Yes, that's what it does, and no, that's not the whole story, keep reading πŸ’–


✨ NAME ✨

sdma_v5_2_emit_fill_buffer β€” literally just fill buffer using the sDMA engine. It's giving utility function with main character energy. πŸ¦‹


🌸 SYNOPSIS 🌸

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

yep, that's the whole signature β€” returns void, takes four things, no notes. 🫢


🧚 ARGUMENTS 🧚

  • ib β€” the indirect buffer to fill. this is your canvas, your little scratchpad of commands πŸ’œ
  • src_data β€” the value to write to buffer. this is the actual juice going in there ✨
  • dst_offset β€” the dst GPU address. where the magic lands, iykyk πŸ“
  • byte_count β€” number of bytes to xfer. how much of the good stuff we're moving, no cap πŸ’«

πŸ”₯ DESCRIPTION πŸ”₯

Fill GPU buffers using the DMA engine. That's it, that's the vibe β€” you hand it an indirect buffer, a value, a GPU address and a byte count, and the sDMA engine gets to work. Lowkey iconic that it's this simple. πŸ‘‘

no cap, this is the entire description in the original too β€” some functions are three words and a dream and that's fine πŸ’…

🌈 SEE ALSO 🌈

the friend group 🫢 β€” first up, the kernel file where this all lives:

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

and then the whole squad of related functions, not me listing them all, but here we go, every single one:


and that's the whole page, bestie, you ate that πŸ“ anyway mwah, this one's dated October 2026, straight outta the ./drivers/gpu/drm/amd/amdgpu directory, Kernel API Manual edition β€” go read the source, ily, bye πŸ’œβœ¨

πŸ“¦ where this page comes from