Displaying 2 results from an estimated 2 matches for "vnf_del_netwk_opaqu".
Did you mean:
vnf_del_netwk_opaque
2020 Apr 07
0
when virEventAddTimeout trigger timeout ,should in the callback call virConnectDomainEventDeregisterAny ?
...out, vnf_control_del_network_timeout_cb, cb_para, vnf_control_del_network_cb_free);
ret = virDomainDetachDeviceFlags(dom, xml, flags);
//above run in a thread function
void vnf_control_del_network_cb(virConnectPtr conn, virDomainPtr dom, const char *dev,void * opaque)
{
struct vnf_del_netwk_opaque * arg = (struct vnf_del_netwk_opaque *)opaque;
if(0 == virConnectDomainEventDeregisterAny(conn, arg->call_id)) {
VNF_DBG("succ to deRegister, conn:%p, call id:%d\n", conn, arg->call_id);
} else {
VNF_DBG("fail to deRegister, conn:%p, call id:%d\n"...
2020 Apr 07
0
why virConnectDomainEventRegisterAny can't alway trigger the callback ,how can i get a stable callback ?
...IN_AFFECT_LIVE;
}
ret = virDomainDetachDeviceFlags(dom, xml, flags); // detach a nic from vm guest os
。。。。
}
void vnf_control_del_network_cb(virConnectPtr conn, virDomainPtr dom, const char *dev,void * opaque) //this callback can't already trigger to run ,why ?
{
struct vnf_del_netwk_opaque * arg = (struct vnf_del_netwk_opaque *)opaque;
........ do someing;
if(0 == virConnectDomainEventDeregisterAny(conn, arg->call_id))
printf("succ to deRegister, conn:%p, call id:%d\n", conn, arg->call_id);
else
printf("fail to deRegister, conn:%p, call i...