IOMMU_DEVICE_DELETE callback function (wdm.h)

Deletes the provided opaque token representing the IOMMU_DMA_DEVICE.

Syntax

IOMMU_DEVICE_DELETE IommuDeviceDelete;

NTSTATUS IommuDeviceDelete(
  PIOMMU_DMA_DEVICE DmaDevice
)
{...}

Parameters

DmaDevice

[In] A pointer to the opaque token representing the IOMMU_DMA_DEVICE to be deleted.

Return value

STATUS_SUCCESS if the operation is successful. Possible error return values include the following status codes.

Return code Description
STATUS_RESOURCE_IN_USE
The device is still attached to a domain. Callers are responsible for calling [**DetachDeviceEx**](nc-wdm-iommu_domain_detach_device_ex.md) before calling `DeleteDevice`.

For more information, see NTSTATUS Values.

Remarks

The caller must ensure that the IOMMU_DMA_DEVICE is detached from any domain it was previously attached to before the caller attempts to delete and free the device.

Requirements

Requirement Value
Minimum supported server Windows Server 2022
Header wdm.h (include Wdm.h)

See also

IOMMU_DEVICE_CREATE

DMA_IOMMU_INTERFACE_V2

DMA_IOMMU_INTERFACE_EX