drivers/media/pci/pt1/pt1.c
Source file repositories/reference/linux-study-clean/drivers/media/pci/pt1/pt1.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/media/pci/pt1/pt1.c- Extension
.c- Size
- 31531 bytes
- Lines
- 1483
- 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/kernel.hlinux/sched.hlinux/sched/signal.hlinux/hrtimer.hlinux/delay.hlinux/module.hlinux/slab.hlinux/vmalloc.hlinux/pci.hlinux/kthread.hlinux/freezer.hlinux/ratelimit.hlinux/string.hlinux/i2c.hmedia/dvbdev.hmedia/dvb_demux.hmedia/dmxdev.hmedia/dvb_net.hmedia/dvb_frontend.htc90522.hqm1d1b0004.hdvb-pll.h
Detected Declarations
struct pt1_buffer_pagestruct pt1_table_pagestruct pt1_bufferstruct pt1_tablestruct pt1_adapterstruct pt1struct pt1_adapterstruct pt1_configenum pt1_fe_clkfunction config_demodfunction pt1_write_regfunction pt1_read_regfunction pt1_increment_table_countfunction pt1_init_table_countfunction pt1_register_tablesfunction pt1_unregister_tablesfunction pt1_syncfunction pt1_identifyfunction pt1_unlockfunction pt1_reset_pcifunction pt1_reset_ramfunction pt1_do_enable_ramfunction pt1_enable_ramfunction pt1_disable_ramfunction pt1_set_streamfunction pt1_init_streamsfunction pt1_filterfunction pt1_threadfunction pt1_free_pagefunction pt1_cleanup_bufferfunction pt1_init_bufferfunction pt1_cleanup_tablefunction pt1_init_tablefunction pt1_cleanup_tablesfunction pt1_init_tablesfunction pt1_start_pollingfunction pt1_start_feedfunction pt1_stop_pollingfunction pt1_stop_feedfunction pt1_update_powerfunction pt1_set_voltagefunction pt1_sleepfunction pt1_wakeupfunction pt1_free_adapterfunction pt1_alloc_adapterfunction pt1_cleanup_adaptersfunction pt1_init_adaptersfunction pt1_cleanup_frontend
Annotated Snippet
static struct pci_driver pt1_driver = {
.name = DRIVER_NAME,
.probe = pt1_probe,
.remove = pt1_remove,
.id_table = pt1_id_table,
.driver.pm = &pt1_pm_ops,
};
module_pci_driver(pt1_driver);
MODULE_AUTHOR("Takahito HIRANO <hiranotaka@zng.info>");
MODULE_DESCRIPTION("Earthsoft PT1/PT2 Driver");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/kernel.h`, `linux/sched.h`, `linux/sched/signal.h`, `linux/hrtimer.h`, `linux/delay.h`, `linux/module.h`, `linux/slab.h`, `linux/vmalloc.h`.
- Detected declarations: `struct pt1_buffer_page`, `struct pt1_table_page`, `struct pt1_buffer`, `struct pt1_table`, `struct pt1_adapter`, `struct pt1`, `struct pt1_adapter`, `struct pt1_config`, `enum pt1_fe_clk`, `function config_demod`.
- 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.