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
commit1fd1a4254d2990f976ca800f2776c1d019b3db27 (patch)
treed41ac8a6b4dd958fb649d99f6a073b867c81ec28 /tools/libxc/xc_netbsd.c
parentb491e4e05dabc4708bb21d426c38774996fc111a (diff)
downloadxen-1fd1a4254d2990f976ca800f2776c1d019b3db27.tar.gz
xen-1fd1a4254d2990f976ca800f2776c1d019b3db27.tar.bz2
xen-1fd1a4254d2990f976ca800f2776c1d019b3db27.zip
libxc: osdep: convert xc_evtchn_bind_virq()
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, 5 insertions, 3 deletions
diff --git a/tools/libxc/xc_netbsd.c b/tools/libxc/xc_netbsd.c
index f14ad85d71..85b4d5c308 100644
--- a/tools/libxc/xc_netbsd.c
+++ b/tools/libxc/xc_netbsd.c
@@ -268,15 +268,16 @@ int xc_evtchn_unbind(xc_evtchn *xce, evtchn_port_t port)
return ioctl(xce->fd, IOCTL_EVTCHN_UNBIND, &unbind);
}
-evtchn_port_or_error_t
-xc_evtchn_bind_virq(xc_evtchn *xce, unsigned int virq)
+static evtchn_port_or_error_t
+netbsd_evtchn_bind_virq(xc_evtchn *xce, xc_osdep_handle h, unsigned int virq)
{
+ int fd = (int)h;
struct ioctl_evtchn_bind_virq bind;
int err;
bind.virq = virq;
- err = ioctl(xce->fd, IOCTL_EVTCHN_BIND_VIRQ, &bind);
+ err = ioctl(fd, IOCTL_EVTCHN_BIND_VIRQ, &bind);
if (err)
return -1;
else
@@ -308,6 +309,7 @@ static struct xc_osdep_ops netbsd_evtchn_ops = {
.notify = &netbsd_evtchn_notify,
.bind_unbound_port = &netbsd_evtchn_bind_unbound_port,
.bind_interdomain = &netbsd_evtchn_bind_interdomain,
+ .bind_virq = &netbsd_evtchn_bind_virq,
},
};