StorPortInitializeSpinlock function (storport.h)

The StorPortInitializeSpinLock routine initializes a variable of type STOR_KSPIN_LOCK.

Syntax

ULONG StorPortInitializeSpinlock(
  [in]  PVOID            HwDeviceExtension,
  [out] PSTOR_KSPIN_LOCK Lock
);

Parameters

[in] HwDeviceExtension

A pointer to the hardware device extension for the host bus adapter (HBA).

[out] Lock

Pointer to a spin lock of type STOR_KSPIN_LOCK, for which the caller must provide the storage

Return value

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.

Remarks

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.

Requirements

Requirement Value
Target Platform Universal
Header storport.h (include Storport.h)

See also

StorPortAcquireMSISpinLock

StorPortAcquireSpinLock

StorPortReleaseMSISpinLock

StorPortReleaseSpinLock