pci_disable_msix(9)
π pci_disable_msix β kernel API manual, but make it make sense
okay bestie, buckle up, this one's from the Kernel API Manual and it's literally all about turning MSI-X off π
πΈ NAME πΈ
pci_disable_msix β disable MSI-X interrupt mode on a device, that's the whole vibe
β¨ SYNOPSIS β¨
void pci_disable_msix (struct pci_dev *dev );
like, that's it. that's the call. no return value, no drama π«Ά
π ARGUMENTS π
devβ the PCI device you wanna operate on π this is your main character right here
π¦ DESCRIPTION π¦
so this is the legacy device driver API, and its whole job is a little three-part slay:
- disable MSI-X interrupt mode on the device
- free the interrupt vectors that got allocated earlier
- restore INTx
and the way it does that? the PCI device's Linux IRQ (dev->irq) gets restored back to its default pin assertion IRQ π no cap, that's the detail.
also highkey important: this is the cleanup pair of pci_enable_msix_range β they're literally a matching set, yin and yang, enable and disable, periodt π
β NOTE β
okay so real talk: in general you should be using the newerpci_alloc_irq_vectors/pci_free_irq_vectorsAPI pair instead of this one π like this one still works, it's just not the moment anymore.
π₯ SEE ALSO π₯
kernel file ./drivers/pci/msi/api.c β go read it, iykyk π
pci_enable_msi(9)pci_disable_msi(9)pci_msix_vec_count(9)pci_enable_msix_range(9)pci_msix_can_alloc_dyn(9)pci_msix_alloc_irq_at(9)pci_msix_free_irq(9)pci_alloc_irq_vectors(9)pci_alloc_irq_vectors_affinity(9)pci_irq_vector(9)pci_irq_get_affinity(9)pci_free_irq_vectors(9)pci_restore_msi_state(9)pci_msi_enabled(9)
all the besties in the friend group, fr fr π
and that's the page! this little icon lives over in ./drivers/pci/msi, the version stamp says October 2026, and the header/footer both rep pci_disable_msix(9) β ok bye, go free those vectors π§ββοΈβ¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms