StorPortGetCurrentProcessorNumber function (storport.h)

The StorPortGetCurrentProcessorNumber routine retrieves the current processor number from the kernel.

Syntax

ULONG StorPortGetCurrentProcessorNumber(
  [in]  PVOID             HwDeviceExtension,
  [out] PPROCESSOR_NUMBER ProcNumber
);

Parameters

[in] HwDeviceExtension

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

[out] ProcNumber

A pointer to a processor number structure that holds the return data.

Return value

The StorPortGetCurrentProcessorNumber routine returns one of the following status codes:

Return code Description
STOR_STATUS_NOT_IMPLEMENTED
This function is not implemented on the active operating system.
STOR_STATUS_SUCCESS
The operation was successful.
STOR_STATUS_INVALID_PARAMETER
The operation fails with this return value if one or more of the parameters are invalid, for example, if ProcNumber is set to NULL.

Requirements

Requirement Value
Minimum supported client Available starting with Windows 7.
Target Platform Universal
Header storport.h (include Storport.h)
IRQL <=DISPATCH_LEVEL
DDI compliance rules StorPortIrql(storport)