Partager via


StorPortRevertToUserGroupAffinityThread, fonction (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 d’appareil matériel du miniport.

[in/optional] ThreadContext

Pointeur vers le contexte de thread reçu dans 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 dans un appel antérieur à StorPortSetSystemGroupAffinityThread.

Valeur de retour

StorPortRevertToUserGroupAffinityThread retourne l’une des valeurs suivantes :

Retourner le code 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 sortie du thread.

Exigences

Exigence Valeur
serveur minimum pris en charge Windows Server 2022
d’en-tête storport.h

Voir aussi

STOR_GROUP_AFFINITY

StorPortCreateSystemThread

StorPortSetSystemGroupAffinityThread