> From: Nicolin Chen <nicolinc@xxxxxxxxxx> > Sent: Tuesday, October 22, 2024 8:19 AM > > Prepare for an embedded structure design for driver-level iommufd_viommu > objects: > // include/linux/iommufd.h > struct iommufd_viommu { > struct iommufd_object obj; > .... > }; > > // Some IOMMU driver > struct iommu_driver_viommu { > struct iommufd_viommu core; > .... > }; > > It has to expose struct iommufd_object and enum iommufd_object_type > from > the core-level private header to the public iommufd header. > > Reviewed-by: Jason Gunthorpe <jgg@xxxxxxxxxx> > Signed-off-by: Nicolin Chen <nicolinc@xxxxxxxxxx> Reviewed-by: Kevin Tian <kevin.tian@xxxxxxxxx>