drivers/pci/irq.c
Source file repositories/reference/linux-study-clean/drivers/pci/irq.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/pci/irq.c- Extension
.c- Size
- 7759 bytes
- Lines
- 281
- Domain
- Representative Device Path
- Bucket
- PCIe NVMe Storage Path
- Inferred role
- Representative Device Path: exported/initcall integration point
- Status
- integration implementation candidate
Why This File Exists
Part of the selected hardware vertical slice: PCI discovery, driver binding, NVMe queues, block requests, DMA, interrupts, and completion.
- Part of the selected hardware vertical slice: PCI discovery, driver binding, NVMe queues, block requests, DMA, interrupts, and completion.
- Exports symbols or registers init work; inspect boot/module ordering and who consumes the exported contract.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- Touches IRQ or DMA behavior; this matters for the representative real-device path.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/device.hlinux/kernel.hlinux/errno.hlinux/export.hlinux/interrupt.hlinux/pci.hpci.h
Detected Declarations
function Copyrightfunction pci_free_irqfunction pci_swizzle_interrupt_pinfunction pci_get_interrupt_pinfunction pci_common_swizzlefunction pci_assign_irqfunction pci_check_and_set_intx_maskfunction interruptfunction pci_check_and_mask_intxfunction pci_check_and_unmask_intxfunction pcibios_penalize_isa_irqfunction pcibios_free_irqexport pci_request_irqexport pci_free_irqexport pci_common_swizzleexport pci_check_and_mask_intxexport pci_check_and_unmask_intx
Annotated Snippet
void __weak pcibios_penalize_isa_irq(int irq, int active) {}
int __weak pcibios_alloc_irq(struct pci_dev *dev)
{
return 0;
}
void __weak pcibios_free_irq(struct pci_dev *dev)
{
}
Annotation
- Immediate include surface: `linux/device.h`, `linux/kernel.h`, `linux/errno.h`, `linux/export.h`, `linux/interrupt.h`, `linux/pci.h`, `pci.h`.
- Detected declarations: `function Copyright`, `function pci_free_irq`, `function pci_swizzle_interrupt_pin`, `function pci_get_interrupt_pin`, `function pci_common_swizzle`, `function pci_assign_irq`, `function pci_check_and_set_intx_mask`, `function interrupt`, `function pci_check_and_mask_intx`, `function pci_check_and_unmask_intx`.
- Atlas domain: Representative Device Path / PCIe NVMe Storage Path.
- Implementation status: integration implementation candidate.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
- IRQ or DMA behavior appears here, which is relevant to the selected PCIe/NVMe device path.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.