drivers/comedi/drivers/adv_pci1710.c
Source file repositories/reference/linux-study-clean/drivers/comedi/drivers/adv_pci1710.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/comedi/drivers/adv_pci1710.c- Extension
.c- Size
- 26965 bytes
- Lines
- 963
- 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.hlinux/comedi/comedi_8254.hamcc_s5933.h
Detected Declarations
struct boardtypestruct pci1710_privateenum pci1710_boardidfunction pci1710_ai_check_chanlistfunction pci1710_ai_setup_chanlistfunction pci1710_ai_eocfunction pci1710_ai_read_samplefunction pci1710_ai_insn_readfunction pci1710_ai_cancelfunction pci1710_handle_every_samplefunction pci1710_handle_fifofunction pci1710_irq_handlerfunction pci1710_ai_cmdfunction pci1710_ai_cmdtestfunction pci1710_ao_insn_writefunction pci1710_di_insn_bitsfunction pci1710_do_insn_bitsfunction pci1710_counter_insn_configfunction pci1710_resetfunction pci1710_auto_attachfunction adv_pci1710_pci_probe
Annotated Snippet
static struct pci_driver adv_pci1710_pci_driver = {
.name = "adv_pci1710",
.id_table = adv_pci1710_pci_table,
.probe = adv_pci1710_pci_probe,
.remove = comedi_pci_auto_unconfig,
};
module_comedi_pci_driver(adv_pci1710_driver, adv_pci1710_pci_driver);
MODULE_AUTHOR("Comedi https://www.comedi.org");
MODULE_DESCRIPTION("Comedi: Advantech PCI-1710 Series Multifunction DAS Cards");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/module.h`, `linux/interrupt.h`, `linux/comedi/comedi_pci.h`, `linux/comedi/comedi_8254.h`, `amcc_s5933.h`.
- Detected declarations: `struct boardtype`, `struct pci1710_private`, `enum pci1710_boardid`, `function pci1710_ai_check_chanlist`, `function pci1710_ai_setup_chanlist`, `function pci1710_ai_eoc`, `function pci1710_ai_read_sample`, `function pci1710_ai_insn_read`, `function pci1710_ai_cancel`, `function pci1710_handle_every_sample`.
- 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.