diff options
author | Anthony Liguori <anthony@codemonkey.ws> | 2010-11-19 18:55:58 +0900 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2010-11-22 10:00:07 +0200 |
commit | 81699d8a90deac361e9e14fd853f8341f40b2fad (patch) | |
tree | 3fbe622d48bafdee3494efaa83c9ad56087569de /cursor.c | |
parent | 0389ced419d249d8742c69e177731b5d18ef3f2f (diff) | |
download | qemu-81699d8a90deac361e9e14fd853f8341f40b2fad.zip qemu-81699d8a90deac361e9e14fd853f8341f40b2fad.tar.gz qemu-81699d8a90deac361e9e14fd853f8341f40b2fad.tar.bz2 |
qbus: add functions to walk both devices and busses
There are some cases where you want to walk the busses, in particular, when
searching for a bus either by name or DeviceInfo.
Paolo suggested that we model the return values on how GCC's walkers work which
allows an actor to skip child transversal, or terminate walking with a positive
value that's returned as the qbus_walk_children's result.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'cursor.c')
0 files changed, 0 insertions, 0 deletions