Re: [libvirt PATCH v4 10/25] nodedev: add helper functions to remove node devices

2021-02-16 Thread Erik Skultety
... > +void > +virNodeDeviceObjListForEachSafe(virNodeDeviceObjListPtr devs, > +virNodeDeviceObjListIterator iter, > +const void *opaque) > +{ > +struct _virNodeDeviceObjListForEachData data = { > +.iter = iter, > +

[libvirt PATCH v4 10/25] nodedev: add helper functions to remove node devices

2021-02-03 Thread Jonathon Jongsma
When a mediated device is stopped or undefined by an application outside of libvirt, we need to remove it from our list of node devices within libvirt. This patch introduces virNodeDeviceObjListRemoveLocked() and virNodeDeviceObjListForEach() (which are analogous to other types of object lists in