of_irq_parse_pci(9)
π of_irq_parse_pci(9) π
okay so bestie, welcome to the of_irq_parse_pci(9) page β straight out of the Kernel API Manual, and honestly? it's giving "tiny function, big job." let's get into it π«Ά
β¨ NAME β¨
of_irq_parse_pci β resolve the interrupt for a PCI device π
like, you've got a PCI device and you need to know what its interrupt is. that's the whole vibe. that's the assignment. periodt.
πΈ SYNOPSIS πΈ
int of_irq_parse_pci (const struct pci_dev *pdev , struct
of_phandle_args *out_irq );
so she takes two things and hands you back an int, no cap. π
π¦ ARGUMENTS π¦
pdevβ the device whose interrupt is to be resolved. yes literally that one. the device in question. her interrupt is the mystery we're solving πout_irqβ astruct of_phandle_argsthat this function fills for you. it's the lil container where the answer lives after she's done. think of it as the group chat where the tea finally gets spilled π
π₯ DESCRIPTION π₯
okay so here's the lore. this function resolves the PCI interrupt for a given PCI device. that's her whole personality.
and the way she does it is honestly so main character energy, because it depends on what she finds:
- if a device node exists for a given
pci_dev, she just uses normal OF tree walking. clean. straightforward. she knows where she's going. β¨ - if not? bestie, she does not panic. she implements standard swizzling and walks up the PCI tree until a device node is found β and at that point she finishes resolving using the OF tree walking. like, she climbs the tree until she finds home and then she slays the rest of the way π§π
no cap, that's the entire algorithm. swizzle, climb, then OF-walk to the finish line. iconic behavior fr fr π
π SEE ALSO π
the kernel file for this one lives at ./drivers/pci/of.c β go say hi to the neighbors, they're all in the same friend group π«Ά
pci_set_of_node(9)of_pci_get_devfn(9)of_pci_parse_bus_range(9)of_get_pci_domain_nr(9)of_pci_preserve_config(9)of_pci_check_probe_only(9)devm_of_pci_get_host_bridge_resources(9)of_irq_parse_and_map_pci(9)of_pci_supply_present(9)of_pci_get_max_link_speed(9)of_pci_get_slot_power_limit(9)of_pci_get_equalization_presets(9)
like a whole little friend group of of_pci_* functions. iykyk π
and that's the whole page, bestie!! π this one came from the ./drivers/pci source, October 2026 era, and she's filed under of_irq_parse_pci(9) in the Kernel API Manual πβ¨ go resolve some interrupts, ily, bye!! ππ¦πΈ
π¦ 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