RE: [patch V2 03/33] genirq/msi: Provide data structs for per device domains

From: Thomas Gleixner
Date: Wed Nov 23 2022 - 06:30:29 EST


On Wed, Nov 23 2022 at 07:57, Kevin Tian wrote:
>> From: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
>> 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

Indeed.