From: Christopher James Halse Rogers Date: Tue, 10 Sep 2013 06:06:45 +0000 (+0530) Subject: dma-buf: Expose buffer size to userspace (v2) X-Git-Tag: v3.12-rc1~51^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=19e8697ba45e7bcdb04f2adf6110fbf4882863e5;p=pandora-kernel.git dma-buf: Expose buffer size to userspace (v2) Each dma-buf has an associated size and it's reasonable for userspace to want to know what it is. Since userspace already has an fd, expose the size using the size = lseek(fd, SEEK_END, 0); lseek(fd, SEEK_CUR, 0); idiom. v2: Added Daniel's sugeested documentation, with minor fixups Signed-off-by: Christopher James Halse Rogers Reviewed-by: Daniel Vetter Tested-by: Daniel Vetter Signed-off-by: Sumit Semwal --- Reading git-diff-tree failed