pci_msi_supported(9)
π pci_msi_supported(9) π
okay bestie, welcome to the Kernel API Manual glow-up for pci_msi_supported β the function that runs a whole vibe check on MSI before anyone enables it. β¨
πΈ NAME πΈ
pci_msi_supported β check whether MSI may be enabled on a device. π
π¦ SYNOPSIS π¦
int pci_msi_supported (struct pci_dev *dev , int nvec );
π ARGUMENTS π
devβ pointer to thepci_devdata structure of the MSI device function. Like, here's the device we're checking, bestie. π«Άnvecβ how many MSIs have been requested? That's the count, periodt. π’
β¨ DESCRIPTION β¨
So what does it actually do? It looks at the global flags, the device itself, and its parent buses to figure out if MSI/-X are supported for the device. If MSI/-X is supported, it returns 1; otherwise it returns 0. That's the whole tea. βπ
π₯ SEE ALSO π₯
- Kernel file
./drivers/pci/msi/msi.c pci_msi_mask_irq(9)pci_msi_unmask_irq(9)msi_capability_init(9)pci_msi_vec_count(9)msix_prepare_msi_desc(9)msix_capability_init(9)pci_msix_write_tph_tag(9)
with love from the source path ./drivers/pci/msi, dated October 2026 β slay and goodbye ππ
π¦ 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