// storport.h
ULONG StorPortInitializeSpinlock(
[in] PVOID HwDeviceExtension,
[out] PSTOR_KSPIN_LOCK Lock
);
View the official Windows Driver Kit DDI referenceNo description available.
The StorPortInitializeSpinLock routine initializes a variable of type STOR_KSPIN_LOCK.
HwDeviceExtension [in]A pointer to the hardware device extension for the host bus adapter (HBA).
Lock [out]Pointer to a spin lock of type STOR_KSPIN_LOCK, for which the caller must provide the storage
StorPortInitializeSpinlock returns a status code such as one of the following:
| Return code | Description |
|---|---|
| STOR_STATUS_NOT_IMPLEMENTED | This function is not implemented on the active operating system. |
| STOR_STATUS_SUCCESS | The list items were removed successfully or the list is already empty. |
This routine must be called before an initial call to StorPortAcquireSpinLock, to any other support routine that requires a spin lock as an argument.
For more information about spin locks, see Spin Locks.