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 | cb1325b0d5f2809eeb855ef3dc655366536910b8 (patch) | |
tree | db5865c73e4423391925c7063a08a90e8e473174 /tools/libxc/xc_netbsd.c | |
parent | 660aa26bec0c544fd5ef50643d87e9d363d79c39 (diff) | |
download | xen-cb1325b0d5f2809eeb855ef3dc655366536910b8.tar.gz xen-cb1325b0d5f2809eeb855ef3dc655366536910b8.tar.bz2 xen-cb1325b0d5f2809eeb855ef3dc655366536910b8.zip |
libxc: osdep: convert xc_evtchn_bind_unbound_port()
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 | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tools/libxc/xc_netbsd.c b/tools/libxc/xc_netbsd.c index 5341a27442..6bd72d970e 100644 --- a/tools/libxc/xc_netbsd.c +++ b/tools/libxc/xc_netbsd.c @@ -225,15 +225,16 @@ static int netbsd_evtchn_notify(xc_evtchn *xce, xc_osdep_handle h, evtchn_port_t return ioctl(fd, IOCTL_EVTCHN_NOTIFY, ¬ify); } -evtchn_port_or_error_t -xc_evtchn_bind_unbound_port(xc_evtchn * xce, int domid) +static evtchn_port_or_error_t +netbsd_evtchn_bind_unbound_port(xc_evtchn * xce, xc_osdep_handle h, int domid) { + int fd = (int)h; struct ioctl_evtchn_bind_unbound_port bind; int ret; bind.remote_domain = domid; - ret = ioctl(xce->fd, IOCTL_EVTCHN_BIND_UNBOUND_PORT, &bind); + ret = ioctl(fd, IOCTL_EVTCHN_BIND_UNBOUND_PORT, &bind); if (ret == 0) return bind.port; else @@ -304,6 +305,7 @@ static struct xc_osdep_ops netbsd_evtchn_ops = { .u.evtchn = { .fd = &netbsd_evtchn_fd, .notify = &netbsd_evtchn_notify, + .bind_unbound_port = &netbsd_evtchn_bind_unbound_port, }, }; |