carta
drm_gem_prime_fd_to_handle(9)

drm_gem_prime_fd_to_handle9

Prime import function for gem drivers

Arguments

dev

dev to export the buffer from

file_priv

drm file-private structure

prime_fd

fd id of the dma-buf which should be imported

handle

pointer to storage for the handle of the imported buffer object

Overview

This is the PRIME import function which must be used mandatorily by GEM drivers to ensure correct lifetime management of the underlying GEM object. The actual importing of GEM object from the dma-buf is done through the gem_import_export driver callback.

Authors

Jesse Barnes <[email protected]>
Intel Corporation,

Initial version

Laurent Pinchart <[email protected]>
Ideas on board SPRL,

Driver internals

Daniel Vetter <[email protected]>
Intel Corporation,

Contributions all over the place

From linux-manual-3.16 3.16.56-1+deb8u1 in Debian 8 (Jessie). Parsed by carta from the page's man source.