这可能是由于其他设备或驱动程序占用了过多的中断资源导致的。 IRQ映射失败:PCI设备与系统之间需要进行中断请求线(IRQ)的映射。如果映射失败,例如由于冲突或硬件故障,pci_alloc_irq_vectors()可能会返回负数。 驱动程序错误:驱动程序本身可能存在问题,无法正确处理IRQ向量分配。这可能是由于驱动程序逻辑错误、参数配置错误...
@min_vecs: minimum number of vectors required (must be >= 1) note: 这个是要申请的最小中断数量,不是起始的vector 参数如下 drivers/pci/msi.c 1171 /** 1172 * pci_alloc_irq_vectors_affinity - allocate multiple IRQs for a device 1173 * @dev: PCI device to operate on 1174 * @min_...
python支持函数直接返回多个变量,具体用法如下: >>> def test(): ... a=2 ... b=3 ......
It returns the number of vectors allocated when successful, so check for a negative error only. Fixes: 3bb434c ("vmw_vmci: switch to pci_irq_alloc_vectors") Signed-off-by: Christoph Hellwig <hch@lst.de> Reported-by: Loïc Yhuel <loic.yhuel@gmail.com> Signed-off-by: Greg Kroah-Har...