diff options
author | Christopher James Halse Rogers <[email protected]> | 2013-09-10 11:36:45 +0530 |
---|---|---|
committer | Sumit Semwal <[email protected]> | 2013-09-10 11:36:45 +0530 |
commit | 19e8697ba45e7bcdb04f2adf6110fbf4882863e5 (patch) | |
tree | 249547a50a16d33e2c3c2dea96a592b2b823dc2b /drivers/message/fusion/lsi/mpi_raid.h | |
parent | 9022e24e8946400d53719a761815069c3183e2bd (diff) |
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 <[email protected]>
Reviewed-by: Daniel Vetter <[email protected]>
Tested-by: Daniel Vetter <[email protected]>
Signed-off-by: Sumit Semwal <[email protected]>
Diffstat (limited to 'drivers/message/fusion/lsi/mpi_raid.h')
0 files changed, 0 insertions, 0 deletions