On Tue, 27 Mar 2012 10:47:46 +0100 Dave Airlie airlied@gmail.com wrote:
From: Dave Airlie airlied@redhat.com
This adds the basic drm dma-buf interface layer, called PRIME,
The main APIs exposed to userspace allow translating a 32-bit object handle to a file descriptor, and a file descriptor to a 32-bit object handle.
The flags value is currently limited to O_CLOEXEC.
Acknowledgements: Daniel Vetter: lots of review Rob Clark: cleaned up lots of the internals and did lifetime review.
v2: rename some functions after Chris preferred a green shed fix IS_ERR_OR_NULL -> IS_ERR v3: Fix Ville pointed out using buffer + kmalloc v4: add locking as per ickle review v5: allow re-exporting the original dma-buf (Daniel)
Signed-off-by: Dave Airlie airlied@redhat.com
I swear there was some other reason for the global hash... if only I could remember it. Acked-by: Ben Widawsky benjamin.widawsky@intel.com