aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxc/xc_gnttab.c
diff options
context:
space:
mode:
authorIan Campbell <ian.campbell@citrix.com>2010-12-03 09:36:47 +0000
committerIan Campbell <ian.campbell@citrix.com>2010-12-03 09:36:47 +0000
commitfcc007081b6e549911b83605cbffbfe8d651f5f8 (patch)
treed719c823ce4927ffe9cb49fe99fa7454b3406202 /tools/libxc/xc_gnttab.c
parent3361a9deea33fb852dc6f2c10c43c4cfeb897abf (diff)
downloadxen-fcc007081b6e549911b83605cbffbfe8d651f5f8.tar.gz
xen-fcc007081b6e549911b83605cbffbfe8d651f5f8.tar.bz2
xen-fcc007081b6e549911b83605cbffbfe8d651f5f8.zip
libxc: osdep: convert xc_gnttab_map_{grant_ref,grant_refs,domain_grant_refs}()
Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Signed-off-by: Ian Jackson <ian.jackson.citrix.com>
Diffstat (limited to 'tools/libxc/xc_gnttab.c')
-rw-r--r--tools/libxc/xc_gnttab.c38
1 files changed, 38 insertions, 0 deletions
diff --git a/tools/libxc/xc_gnttab.c b/tools/libxc/xc_gnttab.c
index e8ec12bdd5..e39502f228 100644
--- a/tools/libxc/xc_gnttab.c
+++ b/tools/libxc/xc_gnttab.c
@@ -145,3 +145,41 @@ grant_entry_v2_t *xc_gnttab_map_table_v2(xc_interface *xch, int domid,
return _gnttab_map_table(xch, domid, gnt_num);
}
+void *xc_gnttab_map_grant_ref(xc_gnttab *xcg,
+ uint32_t domid,
+ uint32_t ref,
+ int prot)
+{
+ return xcg->ops->u.gnttab.map_grant_ref(xcg, xcg->ops_handle,
+ domid, ref, prot);
+}
+
+void *xc_gnttab_map_grant_refs(xc_gnttab *xcg,
+ uint32_t count,
+ uint32_t *domids,
+ uint32_t *refs,
+ int prot)
+{
+ return xcg->ops->u.gnttab.map_grant_refs(xcg, xcg->ops_handle,
+ count, domids, refs, prot);
+}
+
+void *xc_gnttab_map_domain_grant_refs(xc_gnttab *xcg,
+ uint32_t count,
+ uint32_t domid,
+ uint32_t *refs,
+ int prot)
+{
+ return xcg->ops->u.gnttab.map_domain_grant_refs(xcg, xcg->ops_handle,
+ count, domid, refs, prot);
+}
+
+/*
+ * Local variables:
+ * mode: C
+ * c-set-style: "BSD"
+ * c-basic-offset: 4
+ * tab-width: 4
+ * indent-tabs-mode: nil
+ * End:
+ */