mirror of
https://github.com/torvalds/linux.git
synced 2026-11-30 18:42:21 +00:00
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 <[email protected]> Reviewed-by: Daniel Vetter <[email protected]> Tested-by: Daniel Vetter <[email protected]> Signed-off-by: Sumit Semwal <[email protected]>