fn enable_msix(pci_dev: &PciDevice, vector: u8) -> boolExpand description
Try to enable MSI-X on pci_dev with vector using the first table entry.
MSI-X requires access to the device’s BAR space for the vector table. This function maps the table BAR if not already mapped, programs the first table entry with the MSI message address/data, then enables MSI-X.
Returns true on success, false if MSI-X is not supported or
programming failed.
§Safety
The caller must ensure that the BAR containing the MSI-X table is already identity-mapped (or mapped via the kernel’s phys-to-virt window), otherwise the table writes will fault.