Messages in this thread | | | From | "Tian, Kevin" <> | Subject | RE: [PATCH 7/7] iommu: Add iommu_domain::domain_ops | Date | Mon, 24 Jan 2022 09:58:18 +0000 |
| |
> From: Lu Baolu <baolu.lu@linux.intel.com> > Sent: Monday, January 24, 2022 3:11 PM > +/** > + * struct domain_ops - per-domain ops > + * @attach_dev: attach an iommu domain to a device > + * @detach_dev: detach an iommu domain from a device
What is the criteria about whether an op should be iommu_ops or domain_ops when it requires both domain and device pointers like above two (and future PASID-based attach)?
Other examples include: @apply_resv_region @is_attach_deferred
Thanks Kevin
| |