From 660aa26bec0c544fd5ef50643d87e9d363d79c39 Mon Sep 17 00:00:00 2001 From: Ian Campbell Date: Fri, 3 Dec 2010 09:36:47 +0000 Subject: libxc: osdep: convert xc_evtchn_notify() Signed-off-by: Ian Campbell Signed-off-by: Ian Jackson --- tools/libxc/xc_solaris.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'tools/libxc/xc_solaris.c') 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, ¬ify); + return ioctl(fd, IOCTL_EVTCHN_NOTIFY, ¬ify); } 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, }, }; -- cgit v1.2.3