drivers/comedi/drivers/addi_apci_3120.c
Source file repositories/reference/linux-study-clean/drivers/comedi/drivers/addi_apci_3120.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/comedi/drivers/addi_apci_3120.c- Extension
.c- Size
- 30505 bytes
- Lines
- 1118
- Domain
- Driver Families
- Bucket
- drivers/comedi
- Inferred role
- Driver Families: operation-table or driver-model contract
- Status
- pattern implementation candidate
Why This File Exists
Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Defines an operation table; this is where Linux turns generic core objects into subsystem-specific behavior.
- 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/module.hlinux/interrupt.hlinux/comedi/comedi_pci.hamcc_s5933.h
Detected Declarations
struct apci3120_boardstruct apci3120_dmabufstruct apci3120_privateenum apci3120_boardidfunction apci3120_addon_writefunction apci3120_init_dmafunction apci3120_setup_dmafunction apci3120_ns_to_timerfunction apci3120_clr_timer2_interruptfunction apci3120_timer_writefunction apci3120_timer_readfunction apci3120_timer_set_modefunction apci3120_timer_enablefunction apci3120_exttrig_enablefunction apci3120_set_chanlistfunction apci3120_interrupt_dmafunction apci3120_interruptfunction apci3120_ai_cmdfunction apci3120_ai_cmdtestfunction apci3120_cancelfunction apci3120_ai_eocfunction apci3120_ai_insn_readfunction apci3120_ao_readyfunction apci3120_ao_insn_writefunction apci3120_di_insn_bitsfunction apci3120_do_insn_bitsfunction apci3120_timer_insn_configfunction apci3120_timer_insn_readfunction apci3120_dma_allocfunction apci3120_dma_freefunction apci3120_resetfunction apci3120_auto_attachfunction apci3120_detachfunction apci3120_pci_probe
Annotated Snippet
static struct pci_driver apci3120_pci_driver = {
.name = "addi_apci_3120",
.id_table = apci3120_pci_table,
.probe = apci3120_pci_probe,
.remove = comedi_pci_auto_unconfig,
};
module_comedi_pci_driver(apci3120_driver, apci3120_pci_driver);
MODULE_AUTHOR("Comedi https://www.comedi.org");
MODULE_DESCRIPTION("ADDI-DATA APCI-3120, Analog input board");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/module.h`, `linux/interrupt.h`, `linux/comedi/comedi_pci.h`, `amcc_s5933.h`.
- Detected declarations: `struct apci3120_board`, `struct apci3120_dmabuf`, `struct apci3120_private`, `enum apci3120_boardid`, `function apci3120_addon_write`, `function apci3120_init_dma`, `function apci3120_setup_dma`, `function apci3120_ns_to_timer`, `function apci3120_clr_timer2_interrupt`, `function apci3120_timer_write`.
- Atlas domain: Driver Families / drivers/comedi.
- Implementation status: pattern implementation candidate.
- 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.