drivers/media/pci/pt3/pt3.c
Source file repositories/reference/linux-study-clean/drivers/media/pci/pt3/pt3.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/media/pci/pt3/pt3.c- Extension
.c- Size
- 18256 bytes
- Lines
- 808
- 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.
- 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/freezer.hlinux/kernel.hlinux/kthread.hlinux/mutex.hlinux/module.hlinux/pci.hlinux/string.hlinux/sched/signal.hmedia/dmxdev.hmedia/dvbdev.hmedia/dvb_demux.hmedia/dvb_frontend.hpt3.h
Detected Declarations
struct reg_valfunction pt3_demod_writefunction pt3_lnb_ctrlfunction modulefunction pt3_set_lnafunction pt3_set_voltagefunction ICfunction pt3_attach_fefunction pt3_fetch_threadfunction pt3_start_streamingfunction pt3_stop_streamingfunction pt3_start_feedfunction pt3_stop_feedfunction pt3_alloc_adapterfunction pt3_cleanup_adapterfunction pt3_suspendfunction pt3_resumefunction pt3_removefunction pt3_probe
Annotated Snippet
static struct pci_driver pt3_driver = {
.name = DRV_NAME,
.probe = pt3_probe,
.remove = pt3_remove,
.id_table = pt3_id_table,
.driver.pm = &pt3_pm_ops,
};
module_pci_driver(pt3_driver);
MODULE_DESCRIPTION("Earthsoft PT3 Driver");
MODULE_AUTHOR("Akihiro TSUKADA");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/freezer.h`, `linux/kernel.h`, `linux/kthread.h`, `linux/mutex.h`, `linux/module.h`, `linux/pci.h`, `linux/string.h`, `linux/sched/signal.h`.
- Detected declarations: `struct reg_val`, `function pt3_demod_write`, `function pt3_lnb_ctrl`, `function module`, `function pt3_set_lna`, `function pt3_set_voltage`, `function IC`, `function pt3_attach_fe`, `function pt3_fetch_thread`, `function pt3_start_streaming`.
- 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.
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.