Interlocked Operations in Storport Miniport Drivers
Applications must synchronize access to variables that are shared by multiple threads, using the Platform Software Development Kit (SDK) interlocked functions to do so. Many of the interlocked functions available to Windows applications are appropriate for use in Storport miniport drivers. Most of these functions are implemented as compiler intrinsic functions and are suitable for synchronizing changes to protected values. Functions are defined for logical, assignment, comparison, and arthimetic operations.
For more information about interlocked operations, see Interlocked Variable Access.
Note The InterlockedXxx functions are declared in miniport.h or, for 32-bit (x86) drivers, in storport.h.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for