drivers/pci/controller/pcie-altera-msi.c
Source file repositories/reference/linux-study-clean/drivers/pci/controller/pcie-altera-msi.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/pci/controller/pcie-altera-msi.c- Extension
.c- Size
- 7008 bytes
- Lines
- 285
- 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.
- Allocates kernel memory; connect allocation flags and lifetime to context constraints.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/interrupt.hlinux/irqchip/chained_irq.hlinux/irqchip/irq-msi-lib.hlinux/irqdomain.hlinux/init.hlinux/module.hlinux/msi.hlinux/of_address.hlinux/of_pci.hlinux/pci.hlinux/platform_device.hlinux/slab.h
Detected Declarations
struct altera_msifunction msi_writelfunction msi_readlfunction altera_msi_isrfunction altera_compose_msi_msgfunction altera_irq_domain_allocfunction altera_irq_domain_freefunction altera_allocate_domainsfunction altera_free_domainsfunction altera_msi_removefunction altera_msi_probefunction altera_msi_initfunction altera_msi_exitmodule init altera_msi_init
Annotated Snippet
subsys_initcall(altera_msi_init);
MODULE_DEVICE_TABLE(of, altera_msi_of_match);
module_exit(altera_msi_exit);
MODULE_DESCRIPTION("Altera PCIe MSI support driver");
MODULE_LICENSE("GPL v2");
Annotation
- Immediate include surface: `linux/interrupt.h`, `linux/irqchip/chained_irq.h`, `linux/irqchip/irq-msi-lib.h`, `linux/irqdomain.h`, `linux/init.h`, `linux/module.h`, `linux/msi.h`, `linux/of_address.h`.
- Detected declarations: `struct altera_msi`, `function msi_writel`, `function msi_readl`, `function altera_msi_isr`, `function altera_compose_msi_msg`, `function altera_irq_domain_alloc`, `function altera_irq_domain_free`, `function altera_allocate_domains`, `function altera_free_domains`, `function altera_msi_remove`.
- 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.