Table of contents
TOC
Collapse the table of content
Expand the table of content

Declaring Functions by Using Function Role Types for Storport Drivers

Last Updated: 11/22/2016

To enable SDV to analyze a Storport driver, you must declare your functions by using the function role type declarations that are defined for Storport. The function role types are defined in Storport.h.

You must declare each callback function in a Storport driver by specifying the corresponding role type.

The following code example shows the function role type declaration for DriverIntialize callback function. The function role type is sp_DRIVER_INITIALIZE.

sp_DRIVER_INITIALIZE DriverEntry;

If a callback function has a function prototype declaration, you must replace the function prototype with the function role type declaration.

Function role typeStorport routine
sp_DRIVER_INITIALIZEDriverEntry
HW_INITIALIZEHwStorInitialize
HW_BUILDIOHwStorBuildIo
HW_STARTIOHwStorStartIo
HW_INTERRUPTHwStorInterrupt
HW_TIMERHwStorTimer
HW_FIND_ADAPTERHwStorFindAdapter
HW_RESET_BUSHwStorResetBus
HW_ADAPTER_CONTROLHwStorAdapterControl
HW_PASSIVE_INITIALIZE_ROUTINEHwStorPassiveInitializeRoutine
HW_DPC_ROUTINEHwStorDpcRoutine
HW_FREE_ADAPTER_RESOURCESHwFreeAdapterResources part of the VIRTUAL_HW_INITIALIZATION_DATA structure.
HW_PROCESS_SERVICE_REQUESTHwProcessServiceRequest part of the VIRTUAL_HW_INITIALIZATION_DATA structure.
HW_COMPLETE_SERVICE_IRPHwCompleteServiceIrp part of the VIRTUAL_HW_INITIALIZATION_DATA structure.
HW_INITIALIZE_TRACINGHwInitializeTracing part of the VIRTUAL_HW_INITIALIZATION_DATA structure.
HW_CLEANUP_TRACINGHwCleanupTracing part of the VIRTUAL_HW_INITIALIZATION_DATA structure.
VIRTUAL_HW_FIND_ADAPTERHwFindAdapter part of the VIRTUAL_HW_INITIALIZATION_DATA structure.
HW_MESSAGE_SIGNALED_INTERRUPT_ROUTINEHwMSInterruptRoutine

Send comments about this topic to Microsoft

© 2017 Microsoft