[Linaro-mm-sig] [RFC] dma-shared-buf: Add buffer sharing framework
sumit.semwal at linaro.org
Fri Aug 26 11:18:36 UTC 2011
On Aug 26, 2011 4:03 PM, "Arnd Bergmann" <arnd at arndb.de> wrote:
> On Thursday 25 August 2011, Sumit Semwal wrote:
> > >>
> > > Hmmm... Do you mean the platform driver (device?) ptr? That's a good
> > > I will make these changes you suggested, and re-post. I'm thinking of
> > > posting the next version to the upstream mailing lists as well.
> > >
> > Btw, does this mean we can 'assume' that all users/allocators of dma-buf
> > would be platform devices?
> You can pass any struct device, since the pointer is only used by
> the driver that set the pointer it will be able to cast it back to
> the derived type.
I think the idea here is for the original allocator to know that it
allocated a given buffer; so the struct device here is used more as an
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Linaro-mm-sig