FreeBSD/sys/dev/hyperv/utilities/hv_kvp.c
/*
 * Callback routine that gets called whenever there is a message from host
 */
Callback routine that gets called whenever there is a message from host
Callback routine that gets called whenever there is a message from host
static void
hv_kvp_callback(void *context)
{
	hv_kvp_sc *sc = (hv_kvp_sc*)context;
	if (sc->register_done) {
		hv_kvp_log_info("%s: Queuing work item\n", __func__);
		taskqueue_enqueue(taskqueue_thread, &sc->task);
	}
}
static void hv_kvp_callback ( void * context ) { hv_kvp_sc * sc = ( hv_kvp_sc * ) context ; if ( sc -> register_done ) { hv_kvp_log_info ( " \n " , __func__ ) ; taskqueue_enqueue ( taskqueue_thread , & sc -> task ) ; } }
Callback routine that gets called whenever there is a message from host
Callback routine that gets called whenever there is a message from host
/*
	 The first request from host will not be handled until daemon is registered.
	 when callback is triggered without a registered daemon, callback just return.
	 When a new daemon gets regsitered, this callbcak is trigged from _write op.
	*/