...
> +void
> +virNodeDeviceObjListForEachSafe(virNodeDeviceObjListPtr devs,
> +virNodeDeviceObjListIterator iter,
> +const void *opaque)
> +{
> +struct _virNodeDeviceObjListForEachData data = {
> +.iter = iter,
> +
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