Export (0) Print
Expand All

General Storport Driver Routines

This section lists the general support routines supplied by the Storport driver.

In this section

TopicDescription

StorPortDebugPrint

The StorPortDebugPrint routine prints a debug string to the kernel debugger, if the debugger is attached.

StorPortEtwEvent2

The StorPortEtwEvent2 publishes an Event Tracing for Windows (ETW) event to a storage trace channel. The miniport can log two general purpose ETW parameters. The ETW parameters are expressed as two name-value pairs.

StorPortEtwEvent4

The StorPortEtwEvent4 publishes an Event Tracing for Windows (ETW) event to a storage trace channel. The miniport can log four general purpose ETW parameters. The ETW parameters are expressed as four name-value pairs.

StorPortEtwEvent8

The StorPortEtwEvent8 publishes an Event Tracing for Windows (ETW) event to a storage trace channel. The miniport can log eight general purpose ETW parameters. The ETW parameters are expressed as eight name-value pairs.

StorPortGetActivityIdSrb

Retrieves the Event Tracing for Windows (ETW) activity ID associated with a request block.

StorPortGetDeviceObjects

The StorPortGetDeviceObjects routine returns the device objects that are associated with the adapter device stack. The device objects that will be returned are the functional and physical device objects of the adapter and the device object to which the functional device object is attached.

StorPortGetSystemPortNumber

The StorPortGetSystemPortNumber routine retrieves the system assigned port number for a storage adapter.

StorPortInitializeSListHead

Initializes the head of a Storport managed singly linked list.

StorPortInterlockedFlushSList

Removes all items from a Storport managed singly linked list. Access to the list is synchronized on a multiprocessor system

StorPortInterlockedPopEntrySList

Removes an item from the front of a Storport managed singly linked list. Access to the list is synchronized on a multiprocessor system. Syntax

StorPortInterlockedPushEntrySList

Inserts an item at the front of a Storport managed singly linked list. Access to the list is synchronized on a multiprocessor system.

StorPortInvokeAcpiMethod

The StorPortInvokeAcpiMethod routine executes an ACPI method for a storage device.

StorPortIsCurrentOsInstallationUpgrade

The StorPortIsCurrentOsInstallationUpgrade routine checks if the current installation of Windows is an upgrade from a previous version or not.

StorPortIsDeviceOperationAllowed

A miniport driver can call the StorPortIsDeviceOperationAllowedminiport routine to determine if operations for a certain device management class are allowed.

StorPortLogError

The StorPortLogError routine notifies the port driver that an error occurred.

StorPortLogSystemEvent

The StorPortLogSystemEvent routine gives miniport drivers full access to the capabilities of the Windows kernel event facility, enabling miniport drivers to create event log entries that are truly useful in troubleshooting storage issues. It provides a better alternative to the existing miniport driver event logging function, StorPortLogError.

StorPortQueryDepthSList

Retrieves the number of entries in a Storport managed singly linked list.

StorPortQueryPerformanceCounter

The current system performance counter value is queried is returned by the StorPortQueryPerformanceCounter routine.

StorPortQuerySystemTime

The StoriPortQuerySystemTime routine obtains the current system time.

StorPortRegistryRead

The StorPortRegistryRead routine reads the registry data for the indicated device and value.

StorPortRegistryReadAdapterKey

The StorPortRegistryReadAdapterKey routine is called by the miniport driver to read the hardware or device registry adapter keys located in registry at HKLM/CurrentControlSet/Enum/<Instance path>/DeviceParameters/... these keys are read from in the INF DDInstall.HW Section.

StorPortRegistryWriteAdapterKey

The StorPortRegistryWriteAdapterKey routine is called by the miniport driver to write the hardware or device registry adapter keys located in registry at HKLM/CurrentControlSet/Enum/<Instance path>/DeviceParameters/... these keys are written at in the INF DDInstall.HW Section.

StorPortRegistryWrite

The StorPortRegistryWrite routine is called by the miniport driver to convert the registry data contained in a specified buffer from ASCII to Unicode and to then write the data to the miniport driver's per-HBA storage area.

 

 

 

Send comments about this topic to Microsoft

Show:
© 2015 Microsoft