amdgpu_gem_prime_export(9)
π
amdgpu_gem_prime_export(9) β Kernel API Manual, bestie β¨
πΈ NAME πΈ
amdgpu_gem_prime_export β it's the &drm_driver.gem_prime_export implementation, periodt. That ampersand is literally part of the code vibe, don't come for me π
β¨ SYNOPSIS β¨
struct dma_buf * amdgpu_gem_prime_export (struct drm_gem_object *gobj ,
int flags );
π ARGUMENTS π
gobjβ the GEM BO, bestie πflagsβ flags such asDRM_CLOEXECandDRM_RDWRβ¨
π¦ DESCRIPTION π¦
okay so the main work? it's done by the drm_gem_prime_export helper. That's the whole lore here, no cap π«Ά
π RETURN π
You get a shared DMA buffer representing the GEM BO from the given device, and that's the tea π« keep it cute.
π SEE ALSO π
ngl, go peek at these besties:
- 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_dma_buf_create_obj(9)amdgpu_dma_buf_move_notify(9)amdgpu_gem_prime_import(9)amdgpu_dmabuf_is_xgmi_accessible(9)
π cute sign-off: this page lives under source ./drivers/gpu/drm/amd/amdgpu, dated October 2026, and it's literally the amdgpu_gem_prime_export(9) girlie signing off β mwah ππ¦
π¦ 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