pci_irq_type(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ pci_irq_type β€” like, the interrupt-type reveal πŸ’…

Okay bestie, so this one's from the Kernel API Manual (that's the pci_irq_type(9) page, mwah) and it's honestly a little baby page, but she is important so let's give her the respect she deserves. ✨


🌸 NAME 🌸

pci_irq_type β€” get the interrupt type of a PCI device. That's it, that's the whole gig, and she does it flawlessly, no cap.


✨ SYNOPSIS ✨

unsigned int pci_irq_type (struct pci_dev *pdev );

That's the whole function signature, copy-paste vibes, don't touch it, she's perfect. 🫢


πŸ’– ARGUMENTS πŸ’–

  • pdev β€” the PCI device you wanna operate on. That's your main character right there, the one you're asking about. πŸ’…

πŸ¦‹ DESCRIPTION πŸ¦‹

So here's the tea β˜• β€” this function is a little detective. It tells you which kind of interrupt the PCI core went ahead and picked for this device, and it only makes sense to call it after a successful pci_alloc_irq_vectors call. Like, that's the prerequisite, bestie β€” interrupt vectors got allocated, and now you're allowed to ask "so… which flavour did we get?" πŸ”βœ¨

She discriminates the interrupt type. Iconic behaviour, honestly.


⭐ RETURN ⭐

She hands you back one of these three, and yes, they're literal constants, respect them:

  • PCI_IRQ_MSIX
  • PCI_IRQ_MSI
  • PCI_IRQ_INTX

Three possibilities, no in-between, that's the vibe check and she passes every time. πŸ‘‘


🌈 SEE ALSO 🌈

Bestie, buckle up, because the SEE ALSO section is long and we are not skipping a single one of these. Every single name, exactly as written:

That's the whole friend group, and honestly? They all ate. πŸ“πŸ§š


πŸ’€ Friendly reminder: ask about the interrupt type after pci_alloc_irq_vectors succeeds. Before that? The question is giving nothing, bestie.

And that's the page!! πŸŽ€ Signing off from ./include/linux, dated October 2026 β€” that's the source path and the date, both present and accounted for, because we do not leave details behind in this house. πŸ’œβœ¨ Byeee! πŸ¦‹

πŸ“¦ where this page comes from