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 | dbb5c70a0d11b83cbc5b777ed5b5aa3684b61fef (patch) | |
tree | 2b28d368cd89ac4dd51c2d813a9e22ce18dc7cdc /tools/libxc/xc_netbsd.c | |
parent | 1fd1a4254d2990f976ca800f2776c1d019b3db27 (diff) | |
download | xen-dbb5c70a0d11b83cbc5b777ed5b5aa3684b61fef.tar.gz xen-dbb5c70a0d11b83cbc5b777ed5b5aa3684b61fef.tar.bz2 xen-dbb5c70a0d11b83cbc5b777ed5b5aa3684b61fef.zip |
libxc: osdep: convert xc_evtchn_unbind()
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 | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/libxc/xc_netbsd.c b/tools/libxc/xc_netbsd.c index 85b4d5c308..9d708fce57 100644 --- a/tools/libxc/xc_netbsd.c +++ b/tools/libxc/xc_netbsd.c @@ -259,13 +259,14 @@ netbsd_evtchn_bind_interdomain(xc_evtchn *xce, xc_osdep_handle h, int domid, return -1; } -int xc_evtchn_unbind(xc_evtchn *xce, evtchn_port_t port) +static int netbsd_evtchn_unbind(xc_evtchn *xce, xc_osdep_handle h, evtchn_port_t port) { + int fd = (int)h; struct ioctl_evtchn_unbind unbind; unbind.port = port; - return ioctl(xce->fd, IOCTL_EVTCHN_UNBIND, &unbind); + return ioctl(fd, IOCTL_EVTCHN_UNBIND, &unbind); } static evtchn_port_or_error_t @@ -310,6 +311,7 @@ static struct xc_osdep_ops netbsd_evtchn_ops = { .bind_unbound_port = &netbsd_evtchn_bind_unbound_port, .bind_interdomain = &netbsd_evtchn_bind_interdomain, .bind_virq = &netbsd_evtchn_bind_virq, + .unbind = &netbsd_evtchn_unbind, }, }; |