diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2008-09-05 11:56:35 +0100 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2008-09-05 11:56:35 +0100 |
commit | 406b8494bb6b72abd13da118da1f4c82433e4de8 (patch) | |
tree | 94667380c2f2cb11d3d3faa9744286dbb0169838 /tools/libxc/xc_evtchn.c | |
parent | b95d528041324423fc91174913ec0d98dad75e6f (diff) | |
download | xen-406b8494bb6b72abd13da118da1f4c82433e4de8.tar.gz xen-406b8494bb6b72abd13da118da1f4c82433e4de8.tar.bz2 xen-406b8494bb6b72abd13da118da1f4c82433e4de8.zip |
lsevtchn: Improve this evtchn reporting tool.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Diffstat (limited to 'tools/libxc/xc_evtchn.c')
-rw-r--r-- | tools/libxc/xc_evtchn.c | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/tools/libxc/xc_evtchn.c b/tools/libxc/xc_evtchn.c index 5e1ca26502..204698abe0 100644 --- a/tools/libxc/xc_evtchn.c +++ b/tools/libxc/xc_evtchn.c @@ -59,17 +59,8 @@ int xc_evtchn_reset(int xc_handle, return do_evtchn_op(xc_handle, EVTCHNOP_reset, &arg, sizeof(arg), 0); } -int xc_evtchn_status(int xc_handle, - uint32_t dom, - uint32_t port) +int xc_evtchn_status(int xc_handle, xc_evtchn_status_t *status) { - int rc; - struct evtchn_status arg = { .dom = (domid_t)dom, - .port = (evtchn_port_t)port }; - - rc = do_evtchn_op(xc_handle, EVTCHNOP_status, &arg, sizeof(arg), 1); - if ( rc == 0 ) - rc = arg.status; - - return rc; + return do_evtchn_op(xc_handle, EVTCHNOP_status, status, + sizeof(*status), 1); } |