drivers/comedi/drivers/cb_pcimdas.c
Source file repositories/reference/linux-study-clean/drivers/comedi/drivers/cb_pcimdas.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/comedi/drivers/cb_pcimdas.c- Extension
.c- Size
- 12794 bytes
- Lines
- 475
- 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.
- 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_8255.hlinux/comedi/comedi_8254.hplx9052.h
Detected Declarations
struct cb_pcimdas_privatefunction cb_pcimdas_ai_eocfunction cb_pcimdas_ai_insn_readfunction cb_pcimdas_ao_insn_writefunction cb_pcimdas_di_insn_bitsfunction cb_pcimdas_do_insn_bitsfunction cb_pcimdas_counter_insn_configfunction cb_pcimdas_pacer_clkfunction cb_pcimdas_is_ai_sefunction cb_pcimdas_is_ai_unifunction cb_pcimdas_auto_attachfunction cb_pcimdas_pci_probe
Annotated Snippet
static struct pci_driver cb_pcimdas_pci_driver = {
.name = "cb_pcimdas",
.id_table = cb_pcimdas_pci_table,
.probe = cb_pcimdas_pci_probe,
.remove = comedi_pci_auto_unconfig,
};
module_comedi_pci_driver(cb_pcimdas_driver, cb_pcimdas_pci_driver);
MODULE_AUTHOR("Comedi https://www.comedi.org");
MODULE_DESCRIPTION("Comedi driver for PCIM-DAS1602/16 and PCIe-DAS1602/16");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/module.h`, `linux/interrupt.h`, `linux/comedi/comedi_pci.h`, `linux/comedi/comedi_8255.h`, `linux/comedi/comedi_8254.h`, `plx9052.h`.
- Detected declarations: `struct cb_pcimdas_private`, `function cb_pcimdas_ai_eoc`, `function cb_pcimdas_ai_insn_read`, `function cb_pcimdas_ao_insn_write`, `function cb_pcimdas_di_insn_bits`, `function cb_pcimdas_do_insn_bits`, `function cb_pcimdas_counter_insn_config`, `function cb_pcimdas_pacer_clk`, `function cb_pcimdas_is_ai_se`, `function cb_pcimdas_is_ai_uni`.
- Atlas domain: Driver Families / drivers/comedi.
- Implementation status: pattern implementation candidate.
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.