aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxc/xc_minios.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
commite4371c99d8dcff34d8f2699e3cccbd80a0a24876 (patch)
tree8cfe32dbcf12e672fd25b40831c3d120de36f837 /tools/libxc/xc_minios.c
parentfcc007081b6e549911b83605cbffbfe8d651f5f8 (diff)
downloadxen-e4371c99d8dcff34d8f2699e3cccbd80a0a24876.tar.gz
xen-e4371c99d8dcff34d8f2699e3cccbd80a0a24876.tar.bz2
xen-e4371c99d8dcff34d8f2699e3cccbd80a0a24876.zip
libxc: osdep: convert xc_gnttab_munmap()
Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Signed-off-by: Ian Jackson <ian.jackson.citrix.com>
Diffstat (limited to 'tools/libxc/xc_minios.c')
-rw-r--r--tools/libxc/xc_minios.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/tools/libxc/xc_minios.c b/tools/libxc/xc_minios.c
index ab2620cd38..c249f81cbe 100644
--- a/tools/libxc/xc_minios.c
+++ b/tools/libxc/xc_minios.c
@@ -488,12 +488,13 @@ static void *minios_gnttab_map_domain_grant_refs(xc_gnttab *xcg, xc_osdep_handle
prot & PROT_WRITE);
}
-int xc_gnttab_munmap(xc_gnttab *xcg,
- void *start_address,
- uint32_t count)
+static int minios_gnttab_munmap(xc_gnttab *xcg, xc_osdep_handle h,
+ void *start_address,
+ uint32_t count)
{
+ int fd = (int)h;
int ret;
- ret = gntmap_munmap(&files[xcg->fd].gntmap,
+ ret = gntmap_munmap(&files[fd].gntmap,
(unsigned long) start_address,
count);
if (ret < 0) {
@@ -524,6 +525,7 @@ static struct xc_osdep_ops minios_gnttab_ops = {
.map_grant_ref = &minios_gnttab_map_grant_ref,
.map_grant_refs = &minios_gnttab_map_grant_refs,
.map_domain_grant_refs = &minios_gnttab_map_domain_grant_refs,
+ .munmap = &minios_gnttab_munmap,
},
};