Skip to content

Commit f44cb9d

Browse files
committed
iommu: add kernel-doc for iommu_unmap_fast
JIRA: https://issues.redhat.com/browse/RHEL-113839 Upstream-Status: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git commit dc2e692 Author: Leon Romanovsky <leonro@nvidia.com> Date: Mon May 5 10:01:41 2025 +0300 iommu: add kernel-doc for iommu_unmap_fast Add missing kernel-doc comment for iommu_unmap_fast() function. Signed-off-by: Leon Romanovsky <leonro@nvidia.com> Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> (cherry picked from commit dc2e692) Co-developed-by: Claude claude-sonnet-4 Signed-off-by: Jerry Snitselaar <jsnitsel@redhat.com>
1 parent 5a3e510 commit f44cb9d

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

drivers/iommu/iommu.c

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2587,6 +2587,25 @@ size_t iommu_unmap(struct iommu_domain *domain,
25872587
}
25882588
EXPORT_SYMBOL_GPL(iommu_unmap);
25892589

2590+
/**
2591+
* iommu_unmap_fast() - Remove mappings from a range of IOVA without IOTLB sync
2592+
* @domain: Domain to manipulate
2593+
* @iova: IO virtual address to start
2594+
* @size: Length of the range starting from @iova
2595+
* @iotlb_gather: range information for a pending IOTLB flush
2596+
*
2597+
* iommu_unmap_fast() will remove a translation created by iommu_map().
2598+
* It can't subdivide a mapping created by iommu_map(), so it should be
2599+
* called with IOVA ranges that match what was passed to iommu_map(). The
2600+
* range can aggregate contiguous iommu_map() calls so long as no individual
2601+
* range is split.
2602+
*
2603+
* Basically iommu_unmap_fast() is the same as iommu_unmap() but for callers
2604+
* which manage the IOTLB flushing externally to perform a batched sync.
2605+
*
2606+
* Returns: Number of bytes of IOVA unmapped. iova + res will be the point
2607+
* unmapping stopped.
2608+
*/
25902609
size_t iommu_unmap_fast(struct iommu_domain *domain,
25912610
unsigned long iova, size_t size,
25922611
struct iommu_iotlb_gather *iotlb_gather)

0 commit comments

Comments
 (0)