Previous Next

IPortMidi::Notify

The Notify method notifies the port driver that an interrupt indicating the progress of the DMA pointer has occurred. It should be called from the miniport driver's ISR (interrupt-service routine).

VOID 
  Notify(
    IN PSERVICEGROUP  ServiceGroup  OPTIONAL
    );

Parameters

ServiceGroup
Pointer to the miniport driver's IServiceGroup object.

Return Value

None

Headers

Declared in portcls.h. Include portcls.h.

Comments

This method is vital for accurate timing. Most miniports will call this method in response to a notification interrupt after having cleared the interrupt source. Although the miniport driver is free to use other methods for determining when to call this method, precise timing is important and should be maintained.

When an adapter driver installs an ISR, it submits a ServiceContext parameter along with the ISR's entry point (for details, see Providing ISR Context Information). When the interrupt occurs, the operating system calls the ISR and passes ServiceContext as a call parameter to the ISR. Although the meaning of the ServiceContext parameter is known only to the driver developer, it is typically a pointer to the miniport object. The ISR uses this pointer to access information about the miniport object.

The ServiceGroup parameter follows the reference-counting conventions for COM objects.

Callers of Notify can run at any IRQL.

See Also

IServiceGroup