drivers/comedi/drivers/jr3_pci.c
Source file repositories/reference/linux-study-clean/drivers/comedi/drivers/jr3_pci.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/comedi/drivers/jr3_pci.c- Extension
.c- Size
- 19919 bytes
- Lines
- 803
- 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/kernel.hlinux/module.hlinux/delay.hlinux/ctype.hlinux/hex.hlinux/jiffies.hlinux/slab.hlinux/timer.hlinux/comedi/comedi_pci.hjr3_pci.h
Detected Declarations
struct jr3_pci_boardstruct jr3_pci_transformstruct jr3_pci_poll_delaystruct jr3_pci_dev_privatestruct jr3_pci_subdev_privatestruct six_axis_tenum jr3_pci_boardidenum jr3_pci_poll_statefunction poll_delay_min_maxfunction is_completefunction set_transformsfunction use_transformfunction use_offsetfunction set_offsetfunction set_full_scalesfunction get_max_full_scalesfunction jr3_pci_ai_read_chanfunction jr3_pci_ai_insn_readfunction jr3_pci_openfunction read_idm_wordfunction jr3_check_firmwarefunction jr3_write_firmwarefunction jr3_download_firmwarefunction jr3_pci_poll_subdevicefunction jr3_pci_poll_devfunction jr3_pci_alloc_sprivfunction jr3_pci_show_copyrightfunction jr3_pci_auto_attachfunction jr3_pci_detachfunction jr3_pci_pci_probe
Annotated Snippet
static struct pci_driver jr3_pci_pci_driver = {
.name = "jr3_pci",
.id_table = jr3_pci_pci_table,
.probe = jr3_pci_pci_probe,
.remove = comedi_pci_auto_unconfig,
};
module_comedi_pci_driver(jr3_pci_driver, jr3_pci_pci_driver);
MODULE_AUTHOR("Comedi https://www.comedi.org");
MODULE_DESCRIPTION("Comedi driver for JR3/PCI force sensor board");
MODULE_LICENSE("GPL");
MODULE_FIRMWARE("comedi/jr3pci.idm");
Annotation
- Immediate include surface: `linux/kernel.h`, `linux/module.h`, `linux/delay.h`, `linux/ctype.h`, `linux/hex.h`, `linux/jiffies.h`, `linux/slab.h`, `linux/timer.h`.
- Detected declarations: `struct jr3_pci_board`, `struct jr3_pci_transform`, `struct jr3_pci_poll_delay`, `struct jr3_pci_dev_private`, `struct jr3_pci_subdev_private`, `struct six_axis_t`, `enum jr3_pci_boardid`, `enum jr3_pci_poll_state`, `function poll_delay_min_max`, `function is_complete`.
- 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.
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.