drivers/comedi/drivers/me4000.c
Source file repositories/reference/linux-study-clean/drivers/comedi/drivers/me4000.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/comedi/drivers/me4000.c- Extension
.c- Size
- 35591 bytes
- Lines
- 1286
- 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/delay.hlinux/interrupt.hlinux/comedi/comedi_pci.hlinux/comedi/comedi_8254.hplx9052.h
Detected Declarations
struct me4000_privatestruct me4000_boardenum me4000_boardidfunction me4000_xilinx_downloadfunction me4000_ai_resetfunction me4000_resetfunction me4000_ai_get_samplefunction me4000_ai_eocfunction me4000_ai_insn_readfunction me4000_ai_cancelfunction me4000_ai_check_chanlistfunction me4000_ai_round_cmd_argsfunction me4000_ai_write_chanlistfunction me4000_ai_do_cmdfunction me4000_ai_do_cmd_testfunction me4000_ai_isrfunction me4000_ao_insn_writefunction me4000_dio_insn_bitsfunction me4000_dio_insn_configfunction me4000_auto_attachfunction me4000_detachfunction me4000_pci_probe
Annotated Snippet
static struct pci_driver me4000_pci_driver = {
.name = "me4000",
.id_table = me4000_pci_table,
.probe = me4000_pci_probe,
.remove = comedi_pci_auto_unconfig,
};
module_comedi_pci_driver(me4000_driver, me4000_pci_driver);
MODULE_AUTHOR("Comedi https://www.comedi.org");
MODULE_DESCRIPTION("Comedi driver for Meilhaus ME-4000 series boards");
MODULE_LICENSE("GPL");
MODULE_FIRMWARE(ME4000_FIRMWARE);
Annotation
- Immediate include surface: `linux/module.h`, `linux/delay.h`, `linux/interrupt.h`, `linux/comedi/comedi_pci.h`, `linux/comedi/comedi_8254.h`, `plx9052.h`.
- Detected declarations: `struct me4000_private`, `struct me4000_board`, `enum me4000_boardid`, `function me4000_xilinx_download`, `function me4000_ai_reset`, `function me4000_reset`, `function me4000_ai_get_sample`, `function me4000_ai_eoc`, `function me4000_ai_insn_read`, `function me4000_ai_cancel`.
- 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.