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_netbsd.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_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 2f632fbdb7..5341a27442 100644 --- a/tools/libxc/xc_netbsd.c +++ b/tools/libxc/xc_netbsd.c @@ -215,13 +215,14 @@ static int netbsd_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 netbsd_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 @@ -301,7 +302,8 @@ static struct xc_osdep_ops netbsd_evtchn_ops = { .close = &netbsd_evtchn_close, .u.evtchn = { - .fd = &netbsd_evtchn_fd, + .fd = &netbsd_evtchn_fd, + .notify = &netbsd_evtchn_notify, }, }; |