StorPortGetCurrentProcessorNumber function

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

Syntax

ULONG StorPortGetCurrentProcessorNumber(
  _In_  PVOID             HwDeviceExtension,
  _Out_ PPROCESSOR_NUMBER ProcNumber
);

Parameters

HwDeviceExtension

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

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

   
Windows version Available starting with Windows 7. Available starting with Windows 7.
Target Platform Universal
Header storport.h (include Storport.h)
Library NtosKrnl.exe
IRQL "<=DISPATCH_LEVEL"
DDI compliance rules StorPortIrql