drivers/comedi/drivers/c6xdigio.c
Source file repositories/reference/linux-study-clean/drivers/comedi/drivers/c6xdigio.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/comedi/drivers/c6xdigio.c- Extension
.c- Size
- 7920 bytes
- Lines
- 324
- Domain
- Driver Families
- Bucket
- drivers/comedi
- Inferred role
- Driver Families: exported/initcall integration point
- Status
- integration 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.
- Exports symbols or registers init work; inspect boot/module ordering and who consumes the exported contract.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/kernel.hlinux/module.hlinux/sched.hlinux/mm.hlinux/errno.hlinux/interrupt.hlinux/timex.hlinux/timer.hlinux/io.hlinux/pnp.hlinux/comedi/comedidev.h
Detected Declarations
function Copyrightfunction c6xdigio_write_datafunction c6xdigio_get_encoder_bitsfunction c6xdigio_pwm_writefunction c6xdigio_encoder_readfunction c6xdigio_pwm_insn_writefunction c6xdigio_pwm_insn_readfunction c6xdigio_encoder_insn_readfunction c6xdigio_initfunction c6xdigio_attachfunction c6xdigio_module_initfunction c6xdigio_module_exitmodule init c6xdigio_module_init
Annotated Snippet
module_init(c6xdigio_module_init);
static void __exit c6xdigio_module_exit(void)
{
if (c6xdigio_pnp_registered)
pnp_unregister_driver(&c6xdigio_pnp_driver);
comedi_driver_unregister(&c6xdigio_driver);
}
module_exit(c6xdigio_module_exit);
MODULE_AUTHOR("Comedi https://www.comedi.org");
MODULE_DESCRIPTION("Comedi driver for the C6x_DIGIO DSP daughter card");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/kernel.h`, `linux/module.h`, `linux/sched.h`, `linux/mm.h`, `linux/errno.h`, `linux/interrupt.h`, `linux/timex.h`, `linux/timer.h`.
- Detected declarations: `function Copyright`, `function c6xdigio_write_data`, `function c6xdigio_get_encoder_bits`, `function c6xdigio_pwm_write`, `function c6xdigio_encoder_read`, `function c6xdigio_pwm_insn_write`, `function c6xdigio_pwm_insn_read`, `function c6xdigio_encoder_insn_read`, `function c6xdigio_init`, `function c6xdigio_attach`.
- Atlas domain: Driver Families / drivers/comedi.
- Implementation status: integration 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.