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_linux.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_linux.c')
-rw-r--r-- | tools/libxc/xc_linux.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/libxc/xc_linux.c b/tools/libxc/xc_linux.c index bc5cc279fc..9044020fe8 100644 --- a/tools/libxc/xc_linux.c +++ b/tools/libxc/xc_linux.c @@ -410,13 +410,14 @@ linux_evtchn_bind_virq(xc_evtchn *xce, xc_osdep_handle h, unsigned int virq) return ioctl(fd, IOCTL_EVTCHN_BIND_VIRQ, &bind); } -int xc_evtchn_unbind(xc_evtchn *xce, evtchn_port_t port) +static int linux_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); } evtchn_port_or_error_t @@ -445,6 +446,7 @@ static struct xc_osdep_ops linux_evtchn_ops = { .bind_unbound_port = &linux_evtchn_bind_unbound_port, .bind_interdomain = &linux_evtchn_bind_interdomain, .bind_virq = &linux_evtchn_bind_virq, + .unbind = &linux_evtchn_unbind, }, }; |