pci_msix_vec_count(9)
π pci_msix_vec_count(9) π
okay so this is a page from the Kernel API Manual and it's genuinely one of the shorter ones bestie, so we can absolutely get through it together π«Ά
β¨ NAME β¨
pci_msix_vec_count β Get number of MSI-X interrupt vectors on device
like, it just counts your vectors. that's the whole job. icon behaviour honestly π
πΈ SYNOPSIS πΈ
int pci_msix_vec_count (struct pci_dev *dev );
that's it. one function, one argument, one int coming back at you π
π ARGUMENTS π
devβ the PCI device to operate on. literally just hand it the device you're curious about and it'll do its thing β¨
π¦ RETURN π¦
so here's what you get back, and there are three (3) whole vibes:
- the number of MSI-X interrupt vectors available on this device β that's the device's MSI-X capability structure "table size", no cap π
-EINVALβ if the device is not MSI-X capable π like sorry bestie, wrong device- other errnos otherwise β the general "something else went sideways" bucket π
π SEE ALSO π
kernel file ./drivers/pci/msi/api.c β that's where this lives, go read it if you're feeling studious π§
and the whole friend group of related calls, all of them, in order:
pci_enable_msi(9)pci_disable_msi(9)pci_enable_msix_range(9)pci_msix_can_alloc_dyn(9)pci_msix_alloc_irq_at(9)pci_msix_free_irq(9)pci_disable_msix(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)
ngl this one's short but it ate. go count some vectors π
and that's the whole page!! brought to you by ./drivers/pci/msi, dated October 2026, filed under pci_msix_vec_count(9) β mwah, stan ππ
π¦ 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