diff options
author | David Vrabel <david.vrabel@citrix.com> | 2014-12-02 16:13:26 +0000 |
---|---|---|
committer | David Vrabel <david.vrabel@citrix.com> | 2016-01-07 13:21:53 +0000 |
commit | a4cdb556cae05cd3e7b602b3a44c01420c4e2258 (patch) | |
tree | f21957dcd64da3d2be1a0891b523b8ff46e58d1d /lib/decompress.c | |
parent | 6a1f513776b78c994045287073e55bae44ed9f8c (diff) | |
download | linux-a4cdb556cae05cd3e7b602b3a44c01420c4e2258.tar.bz2 |
xen/gntdev: add ioctl for grant copy
Add IOCTL_GNTDEV_GRANT_COPY to allow applications to copy between user
space buffers and grant references.
This interface is similar to the GNTTABOP_copy hypercall ABI except
the local buffers are provided using a virtual address (instead of a
GFN and offset). To avoid userspace from having to page align its
buffers the driver will use two or more ops if required.
If the ioctl returns 0, the application must check the status of each
segment with the segments status field. If the ioctl returns a -ve
error code (EINVAL or EFAULT), the status of individual ops is
undefined.
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Diffstat (limited to 'lib/decompress.c')
0 files changed, 0 insertions, 0 deletions