0 out of 1 rated this helpful - Rate this topic

Synchronized Access within Unsynchronized Miniport Driver Routines

Even when a miniport driver executes in full-duplex mode or does unsynchronized processing of SRBs in an HwStorBuildIo routine, it might still require synchronized access to its device extension. The library of support routines provided by the Storport driver includes StorPortSynchronizeAccess, a routine that allows miniport drivers to synchronize access to critical data structures such as the device extension.

When the miniport driver calls StorPortSynchronizeAccess, it must supply the routine with a pointer to a callback routine. The callback routine contains the part of the SRB's processing that must be synchronized with the host bus adapter's interrupt handler. For better performance, write your driver to spend as little time as possible executing the callback routine.

 

 

Send comments about this topic to Microsoft

Build date: 5/17/2013

© 2013 Microsoft. All rights reserved.