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_linux.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_linux.c')
-rw-r--r-- | tools/libxc/xc_linux.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tools/libxc/xc_linux.c b/tools/libxc/xc_linux.c index 4ad545a07d..0ae64fa26c 100644 --- a/tools/libxc/xc_linux.c +++ b/tools/libxc/xc_linux.c @@ -375,14 +375,15 @@ static int linux_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 +linux_evtchn_bind_unbound_port(xc_evtchn *xce, xc_osdep_handle h, int domid) { + int fd = (int)h; struct ioctl_evtchn_bind_unbound_port bind; bind.remote_domain = domid; - return ioctl(xce->fd, IOCTL_EVTCHN_BIND_UNBOUND_PORT, &bind); + return ioctl(fd, IOCTL_EVTCHN_BIND_UNBOUND_PORT, &bind); } evtchn_port_or_error_t @@ -439,6 +440,7 @@ static struct xc_osdep_ops linux_evtchn_ops = { .u.evtchn = { .fd = &linux_evtchn_fd, .notify = &linux_evtchn_notify, + .bind_unbound_port = &linux_evtchn_bind_unbound_port, }, }; |