amdgpu_dma_buf_create_obj(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… amdgpu_dma_buf_create_obj β€” a lil guide from the Kernel API Manual πŸŽ€

okay so bestie, we're deep in the kernel graphics girlies territory rn β€” this is a page from the Kernel API Manual, and it's all about making a brand new buffer object so a DMA-buf can come on in and vibe. no cap, it's short but it matters. πŸ¦‹


✨ NAME ✨

amdgpu_dma_buf_create_obj β€” literally the function that creates a BO for DMA-buf import πŸ’«


🌸 SYNOPSIS 🌸

struct drm_gem_object * amdgpu_dma_buf_create_obj (struct drm_device
       *dev , struct dma_buf *dma_buf );

so it hands you back a struct drm_gem_object * and it takes two things β€” dev and dma_buf β€” full breakdown below, mwah 🫢


πŸŽ€ ARGUMENTS πŸŽ€

  • dev β€” the DRM device, aka the main character of this whole operation πŸ‘‘
  • dma_buf β€” the DMA-buf itself, the guest of honor arriving for import 🧚

πŸ’– DESCRIPTION πŸ’–

Creates an empty SG BO for DMA-buf import. that's it, that's the whole thing β€” an SG BO, empty, ready for the import to slide in. iconic, minimalist, ate. ✨


🌈 RETURN 🌈

You get back a new GEM BO of the given DRM device β€” and it's representing the memory described by the given DMA-buf attachment and its scatter/gather table. so basically the whole memory situation gets a fresh lil BO to call home πŸ πŸ’œ


πŸ‘‘ SEE ALSO πŸ‘‘

okay this is the group chat roster, everybody's here, no one got left on read:


fr fr go read those too, iykyk πŸ”₯

and that's the whole page babes πŸ’… sourced straight from the ./drivers/gpu/drm/amd/amdgpu directory, served up fresh in October 2026 β€” slay, see you in the next manpage πŸ“πŸ’–β­

πŸ“¦ where this page comes from