drivers/media/pci/dm1105/dm1105.c
Source file repositories/reference/linux-study-clean/drivers/media/pci/dm1105/dm1105.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/media/pci/dm1105/dm1105.c- Extension
.c- Size
- 29518 bytes
- Lines
- 1240
- Domain
- Driver Families
- Bucket
- drivers/media
- 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.
- Allocates kernel memory; connect allocation flags and lifetime to context constraints.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/i2c.hlinux/i2c-algo-bit.hlinux/init.hlinux/interrupt.hlinux/kernel.hlinux/module.hlinux/pci.hlinux/dma-mapping.hlinux/slab.hmedia/rc-core.hmedia/demux.hmedia/dmxdev.hmedia/dvb_demux.hmedia/dvb_frontend.hmedia/dvb_net.hmedia/dvbdev.hdvb-pll.hstv0299.hstv0288.hstb6000.hsi21xx.hcx24116.hz0194a.hts2020.hds3000.h
Detected Declarations
struct dm1105_boardstruct dm1105_subidstruct infraredstruct dm1105_devfunction dm1105_card_listfunction dm1105_gpio_setfunction dm1105_gpio_clearfunction dm1105_gpio_andorfunction dm1105_gpio_getfunction dm1105_gpio_enablefunction dm1105_setlinefunction dm1105_setsdafunction dm1105_setsclfunction dm1105_getsdafunction dm1105_getsclfunction dm1105_i2c_xferfunction functionalityfunction dm1105_set_voltagefunction dm1105_set_dma_addrfunction dm1105_dma_mapfunction dm1105_dma_unmapfunction dm1105_enable_irqsfunction dm1105_disable_irqsfunction dm1105_start_feedfunction dm1105_stop_feedfunction dm1105_emit_keyfunction dm1105_dmx_bufferfunction dm1105_irqfunction dm1105_ir_initfunction dm1105_ir_exitfunction dm1105_hw_initfunction dm1105_hw_exitfunction frontend_initfunction dm1105_read_macfunction dm1105_probefunction dm1105_remove
Annotated Snippet
static struct pci_driver dm1105_driver = {
.name = DRIVER_NAME,
.id_table = dm1105_id_table,
.probe = dm1105_probe,
.remove = dm1105_remove,
};
module_pci_driver(dm1105_driver);
MODULE_AUTHOR("Igor M. Liplianin <liplianin@me.by>");
MODULE_DESCRIPTION("SDMC DM1105 DVB driver");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/i2c.h`, `linux/i2c-algo-bit.h`, `linux/init.h`, `linux/interrupt.h`, `linux/kernel.h`, `linux/module.h`, `linux/pci.h`, `linux/dma-mapping.h`.
- Detected declarations: `struct dm1105_board`, `struct dm1105_subid`, `struct infrared`, `struct dm1105_dev`, `function dm1105_card_list`, `function dm1105_gpio_set`, `function dm1105_gpio_clear`, `function dm1105_gpio_andor`, `function dm1105_gpio_get`, `function dm1105_gpio_enable`.
- Atlas domain: Driver Families / drivers/media.
- 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.