diff options
author | kaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk> | 2005-10-07 15:51:53 +0100 |
---|---|---|
committer | kaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk> | 2005-10-07 15:51:53 +0100 |
commit | 76bd51c23dad4ceb2d3b7677229aac117693b97c (patch) | |
tree | ff3dd6430e1ff4e03a4c80ee4090fb00deebc9ee /tools/console | |
parent | 86a5b732c1a88dee3ed80c34ebf0ed92d75989d6 (diff) | |
download | xen-76bd51c23dad4ceb2d3b7677229aac117693b97c.tar.gz xen-76bd51c23dad4ceb2d3b7677229aac117693b97c.tar.bz2 xen-76bd51c23dad4ceb2d3b7677229aac117693b97c.zip |
Change xs_read_watch interface to return a sized array (in userspace and in
kernel).
Add index macros (XS_WATCH_*) for accessing the array to allow for future
expansion.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'tools/console')
-rw-r--r-- | tools/console/daemon/io.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/console/daemon/io.c b/tools/console/daemon/io.c index cde27b2dc7..24afe0b513 100644 --- a/tools/console/daemon/io.c +++ b/tools/console/daemon/io.c @@ -491,14 +491,15 @@ static void handle_xs(int fd) char **vec; int domid; struct domain *dom; + unsigned int num; - vec = xs_read_watch(xs); + vec = xs_read_watch(xs, &num); if (!vec) return; - if (!strcmp(vec[1], "domlist")) + if (!strcmp(vec[XS_WATCH_TOKEN], "domlist")) enum_domains(); - else if (sscanf(vec[1], "dom%u", &domid) == 1) { + else if (sscanf(vec[XS_WATCH_TOKEN], "dom%u", &domid) == 1) { dom = lookup_domain(domid); if (dom->is_dead == false) domain_create_ring(dom); |