aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxc/xc_netbsd.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
commit5cdff1952ec65b497374d174c7854afe0b291a7f (patch)
treecb53e21859c32b1f98deebfce18e9c64c2d69e95 /tools/libxc/xc_netbsd.c
parentd52853b78cbbf036c089ba2811f16388e739a470 (diff)
downloadxen-5cdff1952ec65b497374d174c7854afe0b291a7f.tar.gz
xen-5cdff1952ec65b497374d174c7854afe0b291a7f.tar.bz2
xen-5cdff1952ec65b497374d174c7854afe0b291a7f.zip
libxc: osdep: convert xc_evtchn_fd()
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.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/libxc/xc_netbsd.c b/tools/libxc/xc_netbsd.c
index 7c60104e4f..2f632fbdb7 100644
--- a/tools/libxc/xc_netbsd.c
+++ b/tools/libxc/xc_netbsd.c
@@ -210,9 +210,9 @@ static int netbsd_evtchn_close(xc_evtchn *xce, xc_osdep_handle h)
return close(fd);
}
-int xc_evtchn_fd(xc_evtchn *xce)
+static int netbsd_evtchn_fd(xc_evtchn *xce, xc_osdep_handle h)
{
- return xce->fd;
+ return (int)h;
}
int xc_evtchn_notify(xc_evtchn *xce, evtchn_port_t port)
@@ -299,6 +299,10 @@ int xc_evtchn_unmask(xc_evtchn *xce, evtchn_port_t port)
static struct xc_osdep_ops netbsd_evtchn_ops = {
.open = &netbsd_evtchn_open,
.close = &netbsd_evtchn_close,
+
+ .u.evtchn = {
+ .fd = &netbsd_evtchn_fd,
+ },
};
/* Optionally flush file to disk and discard page cache */