amdgpu_dma_buf_create_obj(9)
π 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:
- Kernel file
./drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c PRIME Buffer Sharing(9)dma_buf_attach_adev(9)amdgpu_dma_buf_attach(9)amdgpu_dma_buf_detach(9)amdgpu_dma_buf_pin(9)amdgpu_dma_buf_unpin(9)amdgpu_dma_buf_map(9)amdgpu_dma_buf_unmap(9)amdgpu_dma_buf_begin_cpu_access(9)amdgpu_gem_prime_export(9)amdgpu_dma_buf_move_notify(9)amdgpu_gem_prime_import(9)amdgpu_dmabuf_is_xgmi_accessible(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms