IOMMU_INTERFACE_STATE_CHANGE_CALLBACK fonction de rappel (wdm.h)

Cette routine est appelée chaque fois qu’un changement d’état du système affecte un DMA_IOMMU_INTERFACE_EX.

Syntaxe

IOMMU_INTERFACE_STATE_CHANGE_CALLBACK IommuInterfaceStateChangeCallback;

void IommuInterfaceStateChangeCallback(
  PIOMMU_INTERFACE_STATE_CHANGE StateChange,
  PVOID Context
)
{...}

Paramètres

StateChange

[In] Pointeur vers les informations d’état qui indiquent les états qui ont changé. Voir IOMMU_INTERFACE_STATE_CHANGE.

Context

[In, facultatif] Contexte facultatif spécifié par l’appelant qui correspond au contexte facultatif passé lors de l’inscription d’un rappel de changement d’état de l’interface IOMMU via IOMMU_REGISTER_INTERFACE_STATE_CHANGE_CALLBACK.

Valeur de retour

None

Remarques

Ce rappel doit être inscrit via IOMMU_REGISTER_INTERFACE_STATE_CHANGE_CALLBACK. Il est immédiatement appelé lors de l’inscription (pour éviter les conditions de concurrence) et chaque fois qu’un changement d’état système s’est produit. Le propriétaire du rappel ne doit pas assumer l’état et doit toujours case activée les informations d’état fournies dans IOMMU_INTERFACE_STATE_CHANGE.

Il incombe au propriétaire du rappel d’annuler l’inscription du rappel, à l’aide de IOMMU_UNREGISTER_INTERFACE_STATE_CHANGE_CALLBACK, avant de supprimer un DMA_IOMMU_INTERFACE_EX ou un IOMMU_DMA_DEVICE.

Configuration requise

Condition requise Valeur
Serveur minimal pris en charge Windows Server 2022
En-tête wdm.h (include Wdm.h)

Voir aussi

IOMMU_INTERFACE_STATE_CHANGE

IOMMU_INTERFACE_STATE_CHANGE_FIELDS

IOMMU_REGISTER_INTERFACE_STATE_CHANGE_CALLBACK

IOMMU_UNREGISTER_INTERFACE_STATE_CHANGE_CALLBACK

DMA_IOMMU_INTERFACE_V2

DMA_IOMMU_INTERFACE_EX