aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxc/xc_solaris.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
commit660aa26bec0c544fd5ef50643d87e9d363d79c39 (patch)
tree701a27caca17f8ceca51e9149a0094f94a840482 /tools/libxc/xc_solaris.c
parent5cdff1952ec65b497374d174c7854afe0b291a7f (diff)
downloadxen-660aa26bec0c544fd5ef50643d87e9d363d79c39.tar.gz
xen-660aa26bec0c544fd5ef50643d87e9d363d79c39.tar.bz2
xen-660aa26bec0c544fd5ef50643d87e9d363d79c39.zip
libxc: osdep: convert xc_evtchn_notify()
Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Signed-off-by: Ian Jackson <ian.jackson.citrix.com>
Diffstat (limited to 'tools/libxc/xc_solaris.c')
-rw-r--r--tools/libxc/xc_solaris.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/libxc/xc_solaris.c b/tools/libxc/xc_solaris.c
index 506319b7ff..edca1871be 100644
--- a/tools/libxc/xc_solaris.c
+++ b/tools/libxc/xc_solaris.c
@@ -207,13 +207,14 @@ static int solaris_evtchn_fd(xc_evtchn *xce, xc_osdep_handle h)
return (int)h;
}
-int xc_evtchn_notify(xc_evtchn *xce, evtchn_port_t port)
+static int solaris_evtchn_notify(xc_evtchn *xce, xc_osdep_handle h, evtchn_port_t port)
{
+ int fd = (int)h;
struct ioctl_evtchn_notify notify;
notify.port = port;
- return ioctl(xce->fd, IOCTL_EVTCHN_NOTIFY, &notify);
+ return ioctl(fd, IOCTL_EVTCHN_NOTIFY, &notify);
}
evtchn_port_or_error_t
@@ -279,6 +280,7 @@ static struct xc_osdep_ops solaris_evtchn_ops = {
.u.evtchn = {
.fd = &solaris_evtchn_fd,
+ .notify = &solaris_evtchn_notify,
},
};