drm_gem_is_...rted_dma_buf(9)
π NAME π
drm_gem_is_prime_exported_dma_buf β okay so this one checks if the DMA-BUF was exported from a GEM object belonging to @dev. That's it, that's the whole job bestie π«Ά
β¨ SYNOPSIS β¨
bool drm_gem_is_prime_exported_dma_buf (struct drm_device *dev , struct dma_buf *dma_buf );
π ARGUMENTS π
devβ thedrm_deviceyou're checking against. Like, this is the device we're asking about πdma_bufβ the dma-buf object to import. The one on trial, basically π¦
β RETURN β
Returns true if the DMA-BUF was exported from a GEM object belonging to dev, and false otherwise. Iconic boolean behaviour, no notes π
π SEE ALSO π
Like the whole friend group, fr fr β go read these too:
- Kernel file
./drivers/gpu/drm/drm_prime.coverview and lifetime rules(9) π drm_gem_dmabuf_export(9)drm_gem_dmabuf_release(9)drm_gem_prime_fd_to_handle(9)drm_gem_prime_handle_to_dmabuf(9)drm_gem_prime_handle_to_fd(9)- PRIME Helpers(9) β¨
drm_gem_map_attach(9)drm_gem_map_detach(9)drm_gem_map_dma_buf(9)drm_gem_unmap_dma_buf(9)drm_gem_dmabuf_vmap(9)drm_gem_dmabuf_vunmap(9)drm_gem_prime_mmap(9)drm_gem_dmabuf_mmap(9)drm_prime_pages_to_sg(9)drm_prime_get_contiguous_size(9)drm_gem_prime_export(9)drm_gem_prime_import_dev(9)drm_gem_prime_import(9)drm_prime_sg_to_page_array(9)drm_prime_sg_to_dma_addr_array(9)drm_prime_gem_destroy(9)π
Okay that's the whole page, mwah π this lives in ./drivers/gpu/drm and it's dated October 2026, from the Kernel API Manual. Go forth and vibe check your dma-bufs bestie πΈπ§π
π¦ 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