diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/iommu/iommu.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/iommu/iommu.c b/drivers/iommu/iommu.c index 3a072596b1b2..bd2d4d2764dd 100644 --- a/drivers/iommu/iommu.c +++ b/drivers/iommu/iommu.c | |||
@@ -43,6 +43,12 @@ EXPORT_SYMBOL_GPL(iommu_found); | |||
43 | * iommu_set_fault_handler() - set a fault handler for an iommu domain | 43 | * iommu_set_fault_handler() - set a fault handler for an iommu domain |
44 | * @domain: iommu domain | 44 | * @domain: iommu domain |
45 | * @handler: fault handler | 45 | * @handler: fault handler |
46 | * | ||
47 | * This function should be used by IOMMU users which want to be notified | ||
48 | * whenever an IOMMU fault happens. | ||
49 | * | ||
50 | * The fault handler itself should return 0 on success, and an appropriate | ||
51 | * error code otherwise. | ||
46 | */ | 52 | */ |
47 | void iommu_set_fault_handler(struct iommu_domain *domain, | 53 | void iommu_set_fault_handler(struct iommu_domain *domain, |
48 | iommu_fault_handler_t handler) | 54 | iommu_fault_handler_t handler) |