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

2019-11-06 Thread Andrew F. Davis
On 11/6/19 12:18 PM, Andrew F. Davis wrote: > On 11/6/19 12:03 PM, John Stultz wrote: >> On Wed, Nov 6, 2019 at 5:52 AM Andrew F. Davis wrote: >>> >>> On 11/5/19 11:22 PM, John Stultz wrote: +unsigned int dma_heap_ioctl_cmds[] = { + DMA_HEAP_IOC_ALLOC, +}; + +static lo

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

2019-11-06 Thread Andrew F. Davis
On 11/6/19 12:03 PM, John Stultz wrote: > On Wed, Nov 6, 2019 at 5:52 AM Andrew F. Davis wrote: >> >> On 11/5/19 11:22 PM, John Stultz wrote: >>> +unsigned int dma_heap_ioctl_cmds[] = { >>> + DMA_HEAP_IOC_ALLOC, >>> +}; >>> + >>> +static long dma_heap_ioctl(struct file *file, unsigned int ucmd

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

2019-11-06 Thread John Stultz
On Wed, Nov 6, 2019 at 5:52 AM Andrew F. Davis wrote: > > On 11/5/19 11:22 PM, John Stultz wrote: > > +unsigned int dma_heap_ioctl_cmds[] = { > > + DMA_HEAP_IOC_ALLOC, > > +}; > > + > > +static long dma_heap_ioctl(struct file *file, unsigned int ucmd, > > +unsigned long

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

2019-11-06 Thread Andrew F. Davis
On 11/5/19 11:22 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 all

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

2019-11-05 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.