BOOLEAN SerialInsertQueueDpc(IN WDFDPC PDpc) /*++ Routine Description: This function must be called to queue DPC's for the serial driver. Arguments: PDpc - Pointer to the Dpc object Return Value: Kicks up return value from KeInsertQueueDpc() --*/ { // // If the specified DPC object is not currently in the queue, WdfDpcEnqueue // queues the DPC and returns TRUE. // return WdfDpcEnqueue(PDpc); }
static VOID XenVbd_HandleEventDIRQL(PVOID context) { PXENVBD_DEVICE_DATA xvdd = (PXENVBD_DEVICE_DATA)context; PXENVBD_FILTER_DATA xvfd = (PXENVBD_FILTER_DATA)xvdd->xvfd; WdfDpcEnqueue(xvfd->dpc); }