提交 080bf330 编写于 作者: T Tang Chen 提交者: Daniel Veillard

Add uevent netlink service.

This patch adds a new netlink service with NETLINK_KOBJECT_UEVENT
protocol hotplug event.
Signed-off-by: NTang Chen <tangchen@cn.fujitsu.com>
上级 15a71e60
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册