[Linaro-mm-sig] [PATCH] drm: base prime/dma-buf support (v5)

Ben Widawsky ben at bwidawsk.net
Tue Mar 27 18:31:51 PDT 2012


On Tue, 27 Mar 2012 10:47:46 +0100
Dave Airlie <airlied at gmail.com> wrote:

> From: Dave Airlie <airlied at 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 at 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 at intel.com>


More information about the dri-devel mailing list