]> git.ipfire.org Git - thirdparty/libvirt.git/commit
node_device_udev: Pass the `udevEventData` via parameter and use refcounting
authorMarc Hartmayer <mhartmay@linux.ibm.com>
Tue, 23 Apr 2024 18:09:05 +0000 (20:09 +0200)
committerJonathon Jongsma <jjongsma@redhat.com>
Tue, 18 Jun 2024 14:00:36 +0000 (09:00 -0500)
commit65214fcebd85462ba7cc8863193b97bdffc4695a
tree338be5cfaaabb24168c65ec986d58dc454a15298
parent0f8717b1c7382f18c334ae890b08a46fe3272280
node_device_udev: Pass the `udevEventData` via parameter and use refcounting

Instead of accessing the global `driver` object pass the `udevEventData` as
parameter to the thread handler and watch callback. This has the advantage that:
1. proper refcounting
2. easier to read and test

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