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 | 5cdff1952ec65b497374d174c7854afe0b291a7f (patch) | |
tree | cb53e21859c32b1f98deebfce18e9c64c2d69e95 /tools/libxc/xc_solaris.c | |
parent | d52853b78cbbf036c089ba2811f16388e739a470 (diff) | |
download | xen-5cdff1952ec65b497374d174c7854afe0b291a7f.tar.gz xen-5cdff1952ec65b497374d174c7854afe0b291a7f.tar.bz2 xen-5cdff1952ec65b497374d174c7854afe0b291a7f.zip |
libxc: osdep: convert xc_evtchn_fd()
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.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/libxc/xc_solaris.c b/tools/libxc/xc_solaris.c index 3867e8960a..506319b7ff 100644 --- a/tools/libxc/xc_solaris.c +++ b/tools/libxc/xc_solaris.c @@ -202,9 +202,9 @@ static int solaris_evtchn_close(xc_evtchn *xce, xc_osdep_handle h) return close(fd); } -int xc_evtchn_fd(xc_evtchn *xce) +static int solaris_evtchn_fd(xc_evtchn *xce, xc_osdep_handle h) { - return xce->fd; + return (int)h; } int xc_evtchn_notify(xc_evtchn *xce, evtchn_port_t port) @@ -276,6 +276,10 @@ int xc_evtchn_unmask(xc_evtchn *xce, evtchn_port_t port) static struct xc_osdep_ops solaris_evtchn_ops = { .open = &solaris_evtchn_open, .close = &solaris_evtchn_close, + + .u.evtchn = { + .fd = &solaris_evtchn_fd, + }, }; /* Optionally flush file to disk and discard page cache */ |