[Linaro-mm-sig] [RFC] dma-shared-buf: Add buffer sharing framework
Sumit Semwal
sumit.semwal at linaro.org
Fri Aug 26 11:18:36 UTC 2011
Hi Arnd,
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
idea -
> > > 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
identifier.
Br,
~Sumit.
>
> Arnd
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linaro.org/pipermail/linaro-mm-sig/attachments/20110826/1c58bfb3/attachment.html>
More information about the Linaro-mm-sig
mailing list