drivers/comedi/drivers/s626.c
Source file repositories/reference/linux-study-clean/drivers/comedi/drivers/s626.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/comedi/drivers/s626.c- Extension
.c- Size
- 76639 bytes
- Lines
- 2605
- 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.
- 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/module.hlinux/delay.hlinux/interrupt.hlinux/kernel.hlinux/types.hlinux/comedi/comedi_pci.hs626.h
Detected Declarations
struct s626_buffer_dmastruct s626_privatefunction s626_mc_enablefunction s626_mc_disablefunction s626_mc_testfunction s626_debi_transferfunction s626_debi_readfunction s626_debi_writefunction s626_debi_replacefunction s626_i2c_handshake_eocfunction s626_i2c_handshakefunction s626_i2c_readfunction s626_send_dac_eocfunction s626_send_dacfunction s626_set_dacfunction s626_write_trim_dacfunction s626_load_trim_dacsfunction s626_set_latch_sourcefunction s626_preloadfunction s626_reset_cap_flagsfunction programmablefunction s626_set_mode_bfunction s626_set_modefunction s626_set_enablefunction s626_set_load_trigfunction s626_set_int_srcfunction s626_pulse_indexfunction s626_ai_reg_to_uintfunction s626_dio_set_irqfunction s626_dio_reset_irqfunction s626_dio_clear_irqfunction s626_handle_dio_interruptfunction s626_check_dio_interruptsfunction s626_check_counter_interruptsfunction s626_handle_eos_interruptfunction s626_irq_handlerfunction s626_reset_adcfunction s626_ai_eocfunction s626_ai_insn_readfunction s626_ai_load_polllistfunction s626_ai_inttrigfunction s626_ns_to_timerfunction s626_timer_loadfunction s626_ai_cmdfunction s626_ai_cmdtestfunction s626_ai_cancelfunction s626_ao_insn_writefunction s626_dio_init
Annotated Snippet
static struct pci_driver s626_pci_driver = {
.name = "s626",
.id_table = s626_pci_table,
.probe = s626_pci_probe,
.remove = comedi_pci_auto_unconfig,
};
module_comedi_pci_driver(s626_driver, s626_pci_driver);
MODULE_AUTHOR("Gianluca Palli <gpalli@deis.unibo.it>");
MODULE_DESCRIPTION("Sensoray 626 Comedi driver module");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/module.h`, `linux/delay.h`, `linux/interrupt.h`, `linux/kernel.h`, `linux/types.h`, `linux/comedi/comedi_pci.h`, `s626.h`.
- Detected declarations: `struct s626_buffer_dma`, `struct s626_private`, `function s626_mc_enable`, `function s626_mc_disable`, `function s626_mc_test`, `function s626_debi_transfer`, `function s626_debi_read`, `function s626_debi_write`, `function s626_debi_replace`, `function s626_i2c_handshake_eoc`.
- Atlas domain: Driver Families / drivers/comedi.
- Implementation status: pattern 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.