Re: About irq_create_affinity_masks() for a platform device driver

From: Thomas Gleixner
Date: Wed Jan 22 2020 - 06:00:12 EST


John,

John Garry <john.garry@xxxxxxxxxx> writes:
> Would there be any issue with a SCSI platform device driver referencing
> this function?
>
> So I have a multi-queue platform device, and I want to spread interrupts
> over all possible CPUs, just like we can do for PCI MSI vectors. This
> topic was touched on in [0].
>
> And, if so it's ok, could we export that same symbol?

I think you will need something similar to what we have in the pci/msi
code, but that shouldn't be in your device driver. So I'd rather create
platform infrastructure for this and export that.

Thanks,

tglx