Skip to content

Latest commit

 

History

History
46 lines (39 loc) · 2.67 KB

storport-storportfindadapter.md

File metadata and controls

46 lines (39 loc) · 2.67 KB
title description ms.date keywords topic_type ms.topic api_name api_type
StorPortFindAdapter Rule (Storport)
The HwStorFindAdapter routine must set the MaximumTransferLength and the NumberOfPhysicalBreaks fields in the PORT\_CONFIGURATION\_INFORMATION structure.
05/21/2018
StorPortFindAdapter rule (storport)
apiref
reference
StorPortFindAdapter
NA

StorPortFindAdapter rule (storport)

The HwStorFindAdapter routine must set the MaximumTransferLength and the NumberOfPhysicalBreaks fields in the PORT_CONFIGURATION_INFORMATION structure. By default, the value of both these fields is SP_UNINITIALIZED_VALUE. If either of these fields is still set to SP_UNINITIALIZED_VALUE upon exit from FindAdapter, the driver fails the rule.

Driver model: Storport

How to test

At compile time

Run Static Driver Verifier and specify the StorPortFindAdapter rule.

Use the following steps to run an analysis of your code:
  1. Prepare your code (use role type declarations).
  2. Run Static Driver Verifier.
  3. View and analyze the results.

For more information, see Using Static Driver Verifier to Find Defects in Drivers.