aboutsummaryrefslogtreecommitdiffstats
path: root/tools/include
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2008-03-18 15:00:33 +0000
committerKeir Fraser <keir.fraser@citrix.com>2008-03-18 15:00:33 +0000
commit86d8fe5e6a886883cbbf15fb8c5d7399fd50bba6 (patch)
tree4ed5324001904721d4d5e084cd17c7baad9f2572 /tools/include
parent0de39e40277b50f7bca390602216e19a809cc45c (diff)
downloadxen-86d8fe5e6a886883cbbf15fb8c5d7399fd50bba6.tar.gz
xen-86d8fe5e6a886883cbbf15fb8c5d7399fd50bba6.tar.bz2
xen-86d8fe5e6a886883cbbf15fb8c5d7399fd50bba6.zip
libxc: Variable-size gntdev support
This patch adds the ability to set the number of slots that may be used for mapping grant references, using the gntdev user-space grant reference mapping driver. Signed-off-by: Derek Murray <Derek.Murray@cl.cam.ac.uk>
Diffstat (limited to 'tools/include')
-rw-r--r--tools/include/xen-sys/Linux/gntdev.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/tools/include/xen-sys/Linux/gntdev.h b/tools/include/xen-sys/Linux/gntdev.h
index c95e46b663..8bd1467893 100644
--- a/tools/include/xen-sys/Linux/gntdev.h
+++ b/tools/include/xen-sys/Linux/gntdev.h
@@ -102,4 +102,18 @@ struct ioctl_gntdev_get_offset_for_vaddr {
uint32_t pad;
};
+/*
+ * Sets the maximum number of grants that may mapped at once by this gntdev
+ * instance.
+ *
+ * N.B. This must be called before any other ioctl is performed on the device.
+ */
+#define IOCTL_GNTDEV_SET_MAX_GRANTS \
+_IOC(_IOC_NONE, 'G', 3, sizeof(struct ioctl_gntdev_set_max_grants))
+struct ioctl_gntdev_set_max_grants {
+ /* IN parameter */
+ /* The maximum number of grants that may be mapped at once. */
+ uint32_t count;
+};
+
#endif /* __LINUX_PUBLIC_GNTDEV_H__ */