diff options
author | Ian Campbell <ian.campbell@citrix.com> | 2010-12-03 09:36:47 +0000 |
---|---|---|
committer | Ian Campbell <ian.campbell@citrix.com> | 2010-12-03 09:36:47 +0000 |
commit | fcc007081b6e549911b83605cbffbfe8d651f5f8 (patch) | |
tree | d719c823ce4927ffe9cb49fe99fa7454b3406202 /tools/libxc/xc_gnttab.c | |
parent | 3361a9deea33fb852dc6f2c10c43c4cfeb897abf (diff) | |
download | xen-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.c | 38 |
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: + */ |