Partager via


Fonction StorPortRevertToUserGroupAffinityThread (storport.h)

Syntaxe

ULONG StorPortRevertToUserGroupAffinityThread(
  [in]          PVOID                HwDeviceExtension,
  [in/optional] PVOID                ThreadContext,
  [in]          PSTOR_GROUP_AFFINITY PreviousAffinity
);

Paramètres

[in] HwDeviceExtension

Pointeur vers l’extension de périphérique matériel du miniport.

[in/optional] ThreadContext

Pointeur vers le contexte de thread reçu lors d’un appel antérieur à StorPortCreateSystemThread.

[in] PreviousAffinity

Pointeur vers une structure STOR_GROUP_AFFINITY avec l’affinité de groupe à restaurer. Cette affinité de groupe a été obtenue lors d’un appel antérieur à StorPortSetSystemGroupAffinityThread.

Valeur retournée

StorPortRevertToUserGroupAffinityThread retourne l’une des valeurs suivantes :

Code de retour Description
STOR_STATUS_SUCCESS L’affinité de groupe d’origine a été restaurée avec succès.
STOR_STATUS_INVALID_IRQL Le niveau IRQL doit être <= DISPATCH_LEVEL.
STOR_STATUS_INVALID_PARAMETER Un ou plusieurs des paramètres fournis ne sont pas valides.
STOR_STATUS_UNSUCCESSFUL Retourné pour d’autres raisons système internes.

Remarques

Si un miniport appelle StorPortSetSystemGroupAffinityThread pour modifier temporairement l’affinité de groupe du thread, il doit appeler StorPortRevertToUserGroupAffinityThread pour rétablir l’affinité de thread à sa valeur d’origine avant la fermeture du thread.

Configuration requise

Condition requise Valeur
Serveur minimal pris en charge Windows Server 2022
En-tête storport.h

Voir aussi

STOR_GROUP_AFFINITY

StorPortCreateSystemThread

StorPortSetSystemGroupAffinityThread