]> git.ipfire.org Git - thirdparty/libvirt.git/commit
node_device_udev: Introduce and use `stateShutdownPrepare` and `stateShutdownWait`
authorMarc Hartmayer <mhartmay@linux.ibm.com>
Tue, 23 Apr 2024 18:08:59 +0000 (20:08 +0200)
committerJonathon Jongsma <jjongsma@redhat.com>
Tue, 18 Jun 2024 14:00:28 +0000 (09:00 -0500)
commite89d39f5b8f30f0b3284ed2bd71cee1a8a3d707d
tree41e1f9d9586b411191a7f4a16da4ae12ef448ff2
parent6e727d8bdcd1fe257575d65af7ac62158ea7f224
node_device_udev: Introduce and use `stateShutdownPrepare` and `stateShutdownWait`

Introduce and use the driver functions for the node state shutdown preparation
and wait. As they're also called in the error/cleanup path of
`nodeStateInitialize`, they must be written in a way, that they can safely be
executed even if not everything is initialized.

In the next commit, these functions will be extended.

Reviewed-by: Jonathon Jongsma <jjongsma@redhat.com>
Reviewed-by: Boris Fiuczynski <fiuczy@linux.ibm.com>
Signed-off-by: Marc Hartmayer <mhartmay@linux.ibm.com>
src/node_device/node_device_udev.c