pub fn max_interrupts(&self) -> u32 {
        let mut max_interrupts = 0;
        let irq_indexes = vec![
            VFIO_PCI_INTX_IRQ_INDEX,
            VFIO_PCI_MSI_IRQ_INDEX,
            VFIO_PCI_MSIX_IRQ_INDEX,
        ];

        for index in irq_indexes {
            if let Some(irq_info) = self.irqs.get(&index) {
                if irq_info.count > max_interrupts {
                    max_interrupts = irq_info.count;
                }
            }
        }

        max_interrupts
    }
/// Return the maximum number of interrupts a VFIO device can request.
Return the maximum number of interrupts a VFIO device can request.
Return the maximum number of interrupts a VFIO device can request .
pub fn max_interrupts(&self) -> u32 {
        let mut max_interrupts = 0;
        let irq_indexes = vec![
            VFIO_PCI_INTX_IRQ_INDEX,
            VFIO_PCI_MSI_IRQ_INDEX,
            VFIO_PCI_MSIX_IRQ_INDEX,
        ];
        for index in irq_indexes {
            if let Some(irq_info) = self.irqs.get(&index) {
                if irq_info.count > max_interrupts {
                    max_interrupts = irq_info.count;
                }
            }
        }
        max_interrupts
    }
pub fn max_interrupts ( & self ) -> u32 { let mut max_interrupts = 0 ; let irq_indexes = vec ! [ VFIO_PCI_INTX_IRQ_INDEX VFIO_PCI_MSI_IRQ_INDEX VFIO_PCI_MSIX_IRQ_INDEX ] ; for index in irq_indexes { if let Some ( irq_info ) = self . irqs . get ( & index ) { if irq_info . count > max_interrupts { max_interrupts = irq_info . count ; } } } max_interrupts }
Return the maximum number of interrupts a VFIO device can request.
Return the maximum number of interrupts a VFIO device can request .
&self