FreeBSD/sys/dev/hyperv/vmbus/hv_connection.c
/**
 * Send an event notification to the parent
 */
Send an event notification to the parent
Send an event notification to the parent
int
hv_vmbus_set_event(hv_vmbus_channel *channel)
{
	struct vmbus_softc *sc = vmbus_get_softc();
	int ret = 0;
	uint32_t chanid = channel->offer_msg.child_rel_id;
	atomic_set_long(&sc->vmbus_tx_evtflags[chanid >> VMBUS_EVTFLAG_SHIFT],
	    1UL << (chanid & VMBUS_EVTFLAG_MASK));
	ret = hv_vmbus_signal_event(channel->signal_event_param);
	return (ret);
}
int hv_vmbus_set_event ( hv_vmbus_channel * channel ) { struct vmbus_softc * sc = vmbus_get_softc ( ) ; int ret = 0 ; uint32_t chanid = channel -> offer_msg . child_rel_id ; atomic_set_long ( & sc -> vmbus_tx_evtflags [ chanid >> VMBUS_EVTFLAG_SHIFT ] , 1UL << ( chanid & VMBUS_EVTFLAG_MASK ) ) ; ret = hv_vmbus_signal_event ( channel -> signal_event_param ) ; return ( ret ) ; }
Send an event notification to the parent
Send an event notification to the parent