Messages in this thread | | | From | "Tian, Kevin" <> | Subject | RE: [patch V2 03/33] genirq/msi: Provide data structs for per device domains | Date | Wed, 23 Nov 2022 07:57:49 +0000 |
| |
> From: Thomas Gleixner <tglx@linutronix.de> > Sent: Monday, November 21, 2022 10:38 PM > > Provide struct msi_domain_template which contains a bundle of struct > irq_chip, struct msi_domain_ops and struct msi_domain_info and a name > field. > > This template is used by MSI device domain implementations to provide the > domain specific functionality, feature bits etc. > > When a MSI domain is created the template is duplicated in the core code > so that it can be modified per instance. That means templates can be > marked const at the MSI device domain code. > > The template is a bundle to avoid several allocations and duplications > of the involved structures. > > The name field is used to construct the final domain and chip name via: > > $PREFIX-$NAME-$DEVNAME
$PREFIX$NAME-$DEVNAME
| |