Re: [RESEND][PATCH v16 1/5] dma-buf: Add dma-buf heaps framework

2019-12-12 Thread Andrew F. Davis
On 12/3/19 12:26 PM, John Stultz wrote: > From: "Andrew F. Davis" > > This framework allows a unified userspace interface for dma-buf > exporters, allowing userland to allocate specific types of memory > for use in dma-buf sharing. > > Each heap is given its own device node, which a user can

Re: [RESEND][PATCH v16 1/5] dma-buf: Add dma-buf heaps framework

2019-12-12 Thread John Stultz
On Thu, Dec 12, 2019 at 8:52 AM Andrew F. Davis wrote: > On 12/3/19 12:26 PM, John Stultz wrote: > > +#define DMA_HEAP_IOC_MAGIC 'H' > > + > > +/** > > + * DOC: DMA_HEAP_IOC_ALLOC - allocate memory from pool > > + * > > + * Takes a dma_heap_allocation_data struct and returns it with the

[RESEND][PATCH v16 1/5] dma-buf: Add dma-buf heaps framework

2019-12-03 Thread John Stultz
From: "Andrew F. Davis" This framework allows a unified userspace interface for dma-buf exporters, allowing userland to allocate specific types of memory for use in dma-buf sharing. Each heap is given its own device node, which a user can allocate a dma-buf fd from using the DMA_HEAP_IOC_ALLOC.