of_irq_parse_and_map_pci(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ of_irq_parse_and_map_pci(9) πŸŽ€

okay so this is from the Kernel API Manual, and it's literally the page for of_irq_parse_and_map_pci(9) β€” bestie, we're decoding a PCI IRQ from the device tree and mapping it to a VIRQ. iconic. No cap. ✨


πŸ’– NAME πŸ’–

of_irq_parse_and_map_pci β€” Decode a PCI IRQ from the device tree and map to a VIRQ πŸ’…


🌸 SYNOPSIS 🌸

int of_irq_parse_and_map_pci (const struct pci_dev *dev , u8 slot , u8 pin );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • dev β€” The PCI device needing an IRQ. Like, the main character that wants its interrupt, periodt. πŸ‘‘
  • slot β€” PCI slot number; passed when used as map_irq callback. Unused. So it's giving β€œI'm here for the callback signature” energy. πŸ’€
  • pin β€” PCI IRQ pin number; passed when used as map_irq callback. Unused. Same vibe: present, but not doing anything. 🫢

πŸ’œ DESCRIPTION πŸ’œ

So slot and pin are unused, but they're included in the function so that this function can be used directly as the map_irq callback to pci_assign_irq and struct pci_host_bridge.map_irq pointer. That's the whole tea. β˜•βœ¨


πŸ”₯ SEE ALSO πŸ”₯

Kernel file: ./drivers/pci/of.c β€” literally the source file, bestie. 🧚


okay that's the page, bestie! source/version: ./drivers/pci; date: October 2026; page title: of_irq_parse_and_map_pci(9). mwah πŸ’‹πŸ’–

πŸ“¦ where this page comes from