1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-10-23 23:34:16 +03: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:
Tang Chen
2012-08-22 12:10:25 +08:00
committed by Daniel Veillard
parent 15a71e6059
commit 080bf330e3

View File

@@ -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);