msi_capability_init(9)
πΈ NAME πΈ
okay so this is msi_capability_init(9) from the Kernel API Manual, and its whole vibe is: configure device's MSI capability structure β¨ (yes, literally that, bestie).
π¦ SYNOPSIS π¦
int msi_capability_init (struct pci_dev *dev , int nvec , struct
irq_affinity *affd );
π ARGUMENTS π
devβ pointer to thepci_devdata structure of the MSI device function π«Άnvecβ number of interrupts to allocate πaffdβ description of automatic IRQ affinity assignments (may beNULL) π
π₯ DESCRIPTION π₯
This is the glow-up: it sets up the MSI capability structure of the device with the requested number of interrupts. Periodt.
Then the return-value lore, iykyk:
0means the successful setup of an entry with the new MSI IRQ β slay β- a negative return value means there was an error β not the vibe π
- a positive return value means the number of interrupts which could have been allocated β so itβs giving you the count, bestie π’
π SEE ALSO π
Kernel file ./drivers/pci/msi/msi.c is in the group chat, plus all these linked icons:
pci_msi_supported(9)pci_msi_mask_irq(9)pci_msi_unmask_irq(9)pci_msi_vec_count(9)msix_prepare_msi_desc(9)msix_capability_init(9)pci_msix_write_tph_tag(9)
byeee π source/version check: ./drivers/pci/msi Β· October 2026 Β· msi_capability_init(9) β thatβs the cute little sign-off, no cap π
π¦ 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