[PATCH v1 05/12] iommu: Introduce get_viommu_size and viommu_init ops
Jason Gunthorpe
jgg at nvidia.com
Fri Jun 13 06:41:17 PDT 2025
On Mon, Jun 09, 2025 at 10:13:28AM -0700, Nicolin Chen wrote:
> @@ -654,6 +665,10 @@ struct iommu_ops {
>
> int (*def_domain_type)(struct device *dev);
>
> + int (*get_viommu_size)(enum iommu_viommu_type viommu_type,
> + struct device *dev, size_t *viommu_size);
I'd return the size in a size_t instead of using an output
pointer. Make 0 mean not supported..
Jason
More information about the linux-arm-kernel
mailing list