[PATCH v8 05/15] iommupt: Add iova_to_phys op
Randy Dunlap
rdunlap at infradead.org
Tue Nov 4 11:02:06 PST 2025
On 11/4/25 10:30 AM, Jason Gunthorpe wrote:
> +/**
> + * iova_to_phys() - Return the output address for the given IOVA
> + * @iommu_table: Table to query
@domain: (as below)
> + * @iova: IO virtual address to query
> + *
> + * Determine the output address from the given IOVA. @iova may have any
> + * alignment, the returned physical will be adjusted with any sub page offset.
> + *
> + * Context: The caller must hold a read range lock that includes @iova.
> + *
> + * Return: 0 if there is no translation for the given iova.
> + */
> +phys_addr_t DOMAIN_NS(iova_to_phys)(struct iommu_domain *domain,
> + dma_addr_t iova)
> +{
--
~Randy
More information about the linux-riscv
mailing list