]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Introduce virDomainUSBAddressSet
authorJán Tomko <jtomko@redhat.com>
Wed, 12 Aug 2015 14:52:15 +0000 (16:52 +0200)
committerJán Tomko <jtomko@redhat.com>
Thu, 21 Jul 2016 06:30:26 +0000 (08:30 +0200)
commit82c142b321a10c62aa0a10e3ae9ba603b2d7d155
tree8ca9fead51db05318db2f7f6bc18015589ab9668
parentb999ce97f391d90ec41ea8426526392de5543fe9
Introduce virDomainUSBAddressSet

A new type to track USB addresses.

Every <controller type='usb' index='i'/> is represented by an
object of type virDomainUSBAddressHub located at buses[i].

Each of these hubs has up to 'nports' ports.
If a port is occupied, it has the corresponding bit set in
the 'ports' bitmap, e.g. port 1 would have the 0th bit set.
If there is a hub on this port, then hubs[i] will point
to this hub.
src/conf/domain_addr.c
src/conf/domain_addr.h
src/libvirt_private.syms