mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-20 07:59:00 +00:00
Add uevent netlink service.
This patch adds a new netlink service with NETLINK_KOBJECT_UEVENT protocol hotplug event. Signed-off-by: Tang Chen <tangchen@cn.fujitsu.com>
This commit is contained in:
parent
15a71e6059
commit
080bf330e3
@ -1318,6 +1318,12 @@ int main(int argc, char **argv) {
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
/* Register the netlink event service for NETLINK_KOBJECT_UEVENT */
|
||||
if (virNetlinkEventServiceStart(NETLINK_KOBJECT_UEVENT, 1) < 0) {
|
||||
ret = VIR_DAEMON_ERR_NETWORK;
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
/* Run event loop. */
|
||||
virNetServerRun(srv);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user