Skip to content

Commit 8d0e2e9

Browse files
committed
iommu: Export iommu_get_resv_regions()
iommufd wants to use this in the next patch. For some reason the iommu_put_resv_regions() was already exported. Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Lu Baolu <[email protected]> Reviewed-by: Kevin Tian <[email protected]> Tested-by: Nicolin Chen <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
1 parent 91a2e17 commit 8d0e2e9

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

drivers/iommu/iommu.c

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2642,16 +2642,25 @@ int iommu_set_pgtable_quirks(struct iommu_domain *domain,
26422642
}
26432643
EXPORT_SYMBOL_GPL(iommu_set_pgtable_quirks);
26442644

2645+
/**
2646+
* iommu_get_resv_regions - get reserved regions
2647+
* @dev: device for which to get reserved regions
2648+
* @list: reserved region list for device
2649+
*
2650+
* This returns a list of reserved IOVA regions specific to this device.
2651+
* A domain user should not map IOVA in these ranges.
2652+
*/
26452653
void iommu_get_resv_regions(struct device *dev, struct list_head *list)
26462654
{
26472655
const struct iommu_ops *ops = dev_iommu_ops(dev);
26482656

26492657
if (ops->get_resv_regions)
26502658
ops->get_resv_regions(dev, list);
26512659
}
2660+
EXPORT_SYMBOL_GPL(iommu_get_resv_regions);
26522661

26532662
/**
2654-
* iommu_put_resv_regions - release resered regions
2663+
* iommu_put_resv_regions - release reserved regions
26552664
* @dev: device for which to free reserved regions
26562665
* @list: reserved region list for device
26572666
*

0 commit comments

Comments
 (0)