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 | d52853b78cbbf036c089ba2811f16388e739a470 (patch) | |
tree | c08890c846096725b2e562343bcba6298350d2b0 /tools/libxc/xc_netbsd.c | |
parent | 3143748ef690c9c2206817a8a6b5f97e744b795d (diff) | |
download | xen-d52853b78cbbf036c089ba2811f16388e739a470.tar.gz xen-d52853b78cbbf036c089ba2811f16388e739a470.tar.bz2 xen-d52853b78cbbf036c089ba2811f16388e739a470.zip |
libxc: osdep: convert xc_map_foreign_ranges()
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Signed-off-by: Ian Jackson <ian.jackson.citrix.com>
Diffstat (limited to 'tools/libxc/xc_netbsd.c')
-rw-r--r-- | tools/libxc/xc_netbsd.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/tools/libxc/xc_netbsd.c b/tools/libxc/xc_netbsd.c index 00f4ffc2a3..7c60104e4f 100644 --- a/tools/libxc/xc_netbsd.c +++ b/tools/libxc/xc_netbsd.c @@ -140,10 +140,12 @@ static void *netbsd_privcmd_map_foreign_range(xc_interface *xch, xc_osdep_handle return addr; } -void *xc_map_foreign_ranges(xc_interface *xch, uint32_t dom, - size_t size, int prot, size_t chunksize, - privcmd_mmap_entry_t entries[], int nentries) +static void *netbsd_privcmd_map_foreign_ranges(xc_interface *xch, xc_osdep_handle h, + uint32_t dom, + size_t size, int prot, size_t chunksize, + privcmd_mmap_entry_t entries[], int nentries) { + int fd = (int)h; privcmd_mmap_t ioctlx; int i, rc; void *addr; @@ -161,7 +163,7 @@ void *xc_map_foreign_ranges(xc_interface *xch, uint32_t dom, ioctlx.dom = dom; ioctlx.entry = entries; - rc = ioctl(xch->fd, IOCTL_PRIVCMD_MMAP, &ioctlx); + rc = ioctl(fd, IOCTL_PRIVCMD_MMAP, &ioctlx); if (rc) goto ioctl_failed; @@ -186,6 +188,7 @@ static struct xc_osdep_ops netbsd_privcmd_ops = { .map_foreign_batch = &netbsd_privcmd_map_foreign_batch, .map_foreign_bulk = &xc_map_foreign_bulk_compat, .map_foreign_range = &netbsd_privcmd_map_foreign_range, + .map_foreign_ranges = &netbsd_privcmd_map_foreign_ranges, }, }; |