[Linaro-mm-sig] [PATCH] RFC: dma-buf: userspace mmap support

2012-03-15 Thread Abhinav Kochhar
do we need to pass the dmabuf object to dmabuf->ops->mmap(dmabuf, file, vma)? as file->private_data can retrieve the dmabuf object. *"dmabuf = file->private_data"* *removing dmabuf from the function arguments will keep it consistent with basic "mmap" definitions: * *"static int _mmap(struct

Re: [Linaro-mm-sig] [PATCH] RFC: dma-buf: userspace mmap support

2012-03-15 Thread Abhinav Kochhar
do we need to pass the dmabuf object to dmabuf->ops->mmap(dmabuf, file, vma)? as file->private_data can retrieve the dmabuf object. *"dmabuf = file->private_data"* *removing dmabuf from the function arguments will keep it consistent with basic "mmap" definitions: * *"static int _mmap(struct