]> git.ipfire.org Git - thirdparty/libvirt.git/commit
nodedev: add helper functions to remove node devices
authorJonathon Jongsma <jjongsma@redhat.com>
Thu, 15 Oct 2020 16:30:35 +0000 (11:30 -0500)
committerJonathon Jongsma <jjongsma@redhat.com>
Wed, 7 Apr 2021 20:08:59 +0000 (15:08 -0500)
commit00b649d0cfdc0e9170ec2ff1afc43a25c08ebe49
tree1ebf6150ebf0eb55e1be21ebe08b095d3a002aab
parentaa897d46d5894bf0f7f346588ea11caa4c81d3c8
nodedev: add helper functions to remove node devices

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
virNodeDeviceObjListForEachRemove() (which are analogous to other types
of object lists in libvirt) to facilitate that. They will be used in
coming commits.

Signed-off-by: Jonathon Jongsma <jjongsma@redhat.com>
Reviewed-by: Erik Skultety <eskultet@redhat.com>
src/conf/virnodedeviceobj.c
src/conf/virnodedeviceobj.h
src/libvirt_private.syms