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 | 660aa26bec0c544fd5ef50643d87e9d363d79c39 (patch) | |
tree | 701a27caca17f8ceca51e9149a0094f94a840482 /tools/libxc/xc_linux.c | |
parent | 5cdff1952ec65b497374d174c7854afe0b291a7f (diff) | |
download | xen-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_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 d6956ccc85..4ad545a07d 100644 --- a/tools/libxc/xc_linux.c +++ b/tools/libxc/xc_linux.c @@ -365,13 +365,14 @@ static int linux_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 linux_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 @@ -437,6 +438,7 @@ static struct xc_osdep_ops linux_evtchn_ops = { .u.evtchn = { .fd = &linux_evtchn_fd, + .notify = &linux_evtchn_notify, }, }; |