diff options
author | kaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk> | 2005-06-05 10:11:05 +0000 |
---|---|---|
committer | kaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk> | 2005-06-05 10:11:05 +0000 |
commit | c1c0a2f39a8ac2a12792a17a6b1e2afc406caa83 (patch) | |
tree | 365e5bb506431ede51f6b8ad913de68e4d6541b8 /tools/libxc/xc_evtchn.c | |
parent | d87728d8c559bdc460ce341dc5b4f8d99ca30b2d (diff) | |
download | xen-c1c0a2f39a8ac2a12792a17a6b1e2afc406caa83.tar.gz xen-c1c0a2f39a8ac2a12792a17a6b1e2afc406caa83.tar.bz2 xen-c1c0a2f39a8ac2a12792a17a6b1e2afc406caa83.zip |
bitkeeper revision 1.1674 (42a2cfb9WFgnh2K4Xr5ev3pSEASVbw)
Extend EVTCHNOP_alloc_unbound to allocate a specified port, if
non-zero value is passed in.
Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'tools/libxc/xc_evtchn.c')
-rw-r--r-- | tools/libxc/xc_evtchn.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/libxc/xc_evtchn.c b/tools/libxc/xc_evtchn.c index 9371e61261..8ee2fd11ee 100644 --- a/tools/libxc/xc_evtchn.c +++ b/tools/libxc/xc_evtchn.c @@ -39,8 +39,9 @@ int xc_evtchn_alloc_unbound(int xc_handle, int rc; op.cmd = EVTCHNOP_alloc_unbound; - op.u.alloc_unbound.dom = (domid_t)dom; - + op.u.alloc_unbound.dom = (domid_t)dom; + op.u.alloc_unbound.port = (port != NULL) ? *port : 0; + if ( (rc = do_evtchn_op(xc_handle, &op)) == 0 ) { if ( port != NULL ) |