次の方法で共有


NDIS-Supplied Interrupt Handling Functions (NDIS 5.1)

Note   NDIS 5. x has been deprecated and is superseded by NDIS 6. x. For new NDIS driver development, see Network Drivers Starting with Windows Vista. For information about porting NDIS 5. x drivers to NDIS 6. x, see Porting NDIS 5.x Drivers to NDIS 6.0.

The NDIS Library provides several interrupt handling functions for use in a multiprocessor environment. These functions relate to network interface card (NIC) interrupts on a host processor.

The following interrupt handling functions are supplied by NDIS:

  • NdisMDeregisterInterrupt
    Stops an interrupt handler from receiving interrupts. The operating system disconnects the interrupt service function from its associated NIC interrupt.

  • NdisMRegisterInterrupt
    Associates the miniport driver interrupt service function ( MiniportISR) with interrupts generated by its NIC.

  • NdisMSynchronizeWithInterrupt
    Any NIC driver function that shares resources with the MiniportISR or MiniportDisableInterrupt functions must synchronize access to these resources to prevent race conditions. Functions that must synchronize with MiniportISR and MiniportDisableInterrupt do so by calling NdisMSynchronizeWithInterrupt and passing the address of a MiniportSynchronizeISR function. The MiniportSynchronizeISR function runs at DIRQL so that it can safely access the shared resource.

 

 

Send comments about this topic to Microsoft