include/linux/comedi/comedidev.h
Source file repositories/reference/linux-study-clean/include/linux/comedi/comedidev.h
File Facts
- System
- Linux kernel
- Corpus path
include/linux/comedi/comedidev.h- Extension
.h- Size
- 43534 bytes
- Lines
- 1100
- Domain
- Core OS
- Bucket
- Core Kernel Interface
- Inferred role
- Core OS: exported/initcall integration point
- Status
- integration implementation candidate
Why This File Exists
Core operating-system implementation surface: boot, tasks, memory, VFS, syscall-facing interfaces, synchronization, credentials, and isolation.
- Core operating-system implementation surface: boot, tasks, memory, VFS, syscall-facing interfaces, synchronization, credentials, and isolation.
- Exports symbols or registers init work; inspect boot/module ordering and who consumes the exported contract.
- 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/dma-mapping.hlinux/mutex.hlinux/spinlock_types.hlinux/rwsem.hlinux/kref.hlinux/completion.hlinux/comedi.h
Detected Declarations
struct comedi_subdevicestruct comedi_buf_pagestruct comedi_buf_mapstruct comedi_asyncstruct comedi_driverstruct comedi_devicestruct comedi_lrangeenum comedi_cbfunction comedi_range_is_bipolarfunction comedi_range_is_unipolarfunction comedi_range_is_externalfunction comedi_chan_range_is_bipolarfunction comedi_chan_range_is_unipolarfunction comedi_chan_range_is_externalfunction comedi_offset_mungefunction comedi_bytes_per_samplefunction comedi_sample_shiftfunction comedi_bytes_to_samplesfunction comedi_samples_to_bytesfunction comedi_check_trigger_srcfunction comedi_check_trigger_is_uniquefunction comedi_check_trigger_arg_isfunction comedi_check_trigger_arg_minfunction comedi_check_trigger_arg_maxfunction comedi_buf_n_bytes_readyfunction __comedi_request_regionfunction comedi_request_region
Annotated Snippet
* this macro once, and calling it replaces module_init() and module_exit().
*/
#define module_comedi_driver(__comedi_driver) \
module_driver(__comedi_driver, comedi_driver_register, \
comedi_driver_unregister)
#endif /* _COMEDIDEV_H */
Annotation
- Immediate include surface: `linux/dma-mapping.h`, `linux/mutex.h`, `linux/spinlock_types.h`, `linux/rwsem.h`, `linux/kref.h`, `linux/completion.h`, `linux/comedi.h`.
- Detected declarations: `struct comedi_subdevice`, `struct comedi_buf_page`, `struct comedi_buf_map`, `struct comedi_async`, `struct comedi_driver`, `struct comedi_device`, `struct comedi_lrange`, `enum comedi_cb`, `function comedi_range_is_bipolar`, `function comedi_range_is_unipolar`.
- Atlas domain: Core OS / Core Kernel Interface.
- Implementation status: integration 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.