Déclaration de fonctions à l’aide de types de rôles de fonction pour les pilotes Storport

Pour permettre à SDV d’analyser un pilote Storport, vous devez déclarer vos fonctions à l’aide des déclarations de type de rôle de fonction définies pour Storport. Les types de rôles de fonction sont définis dans Storport.h.

Vous devez déclarer chaque fonction de rappel dans un pilote Storport en spécifiant le type de rôle correspondant.

L’exemple de code suivant montre la déclaration de type de rôle de fonction pour la fonction de rappel DriverIntialize. Le type de rôle de fonction est sp_DRIVER_INITIALIZE.

sp_DRIVER_INITIALIZE DriverEntry;

Si une fonction de rappel a une déclaration de prototype de fonction, vous devez remplacer le prototype de fonction par la déclaration de type de rôle de fonction.

Type de rôle de fonction Routine Storport
sp_DRIVER_INITIALIZE DriverEntry
HW_INITIALIZE HwStorInitialize
HW_BUILDIO HwStorBuildIo
HW_STARTIO HwStorStartIo
HW_INTERRUPT HwStorInterrupt
HW_TIMER HwStorTimer
HW_FIND_ADAPTER HwStorFindAdapter
HW_RESET_BUS HwStorResetBus
HW_ADAPTER_CONTROL HwStorAdapterControl
HW_PASSIVE_INITIALIZE_ROUTINE HwStorPassiveInitializeRoutine
HW_DPC_ROUTINE HwStorDpcRoutine
HW_FREE_ADAPTER_RESOURCES HwFreeAdapterResources fait partie de la structure VIRTUAL_HW_INITIALIZATION_DATA .
HW_PROCESS_SERVICE_REQUEST Partie HwProcessServiceRequest de la structure VIRTUAL_HW_INITIALIZATION_DATA .
HW_COMPLETE_SERVICE_IRP Partie HwCompleteServiceIrp de la structure VIRTUAL_HW_INITIALIZATION_DATA .
HW_INITIALIZE_TRACING Partie HwInitializeTracing de la structure VIRTUAL_HW_INITIALIZATION_DATA .
HW_CLEANUP_TRACING Partie HwCleanupTracing de la structure VIRTUAL_HW_INITIALIZATION_DATA .
VIRTUAL_HW_FIND_ADAPTER Partie HwFindAdapter de la structure VIRTUAL_HW_INITIALIZATION_DATA .
HW_MESSAGE_SIGNALED_INTERRUPT_ROUTINE HwMSInterruptRoutine