drivers/media/pci/cx88/cx88-mpeg.c
Source file repositories/reference/linux-study-clean/drivers/media/pci/cx88/cx88-mpeg.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/media/pci/cx88/cx88-mpeg.c- Extension
.c- Size
- 20063 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.
- 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
cx88.hlinux/module.hlinux/slab.hlinux/init.hlinux/device.hlinux/dma-mapping.hlinux/interrupt.hlinux/delay.h
Detected Declarations
function request_module_asyncfunction request_modulesfunction flush_request_modulesfunction cx8802_start_dmafunction cx8802_stop_dmafunction cx8802_restart_queuefunction cx8802_buf_preparefunction cx8802_buf_queuefunction do_cancel_buffersfunction cx8802_cancel_buffersfunction cx8802_mpeg_irqfunction cx8802_irqfunction cx8802_init_commonfunction cx8802_fini_commonfunction cx8802_suspend_commonfunction pci_choose_statefunction cx8802_resume_commonfunction cx8802_request_acquirefunction cx8802_request_releasefunction cx8802_check_driverfunction cx8802_register_driverfunction list_for_each_entryfunction cx8802_unregister_driverfunction list_for_each_entryfunction list_for_each_entry_safefunction cx8802_probefunction cx8802_removefunction list_for_each_entry_safeexport cx8802_start_dmaexport cx8802_buf_prepareexport cx8802_buf_queueexport cx8802_cancel_buffersexport cx8802_get_driverexport cx8802_register_driverexport cx8802_unregister_driver
Annotated Snippet
static struct pci_driver cx8802_pci_driver = {
.name = "cx88-mpeg driver manager",
.id_table = cx8802_pci_tbl,
.probe = cx8802_probe,
.remove = cx8802_remove,
};
module_pci_driver(cx8802_pci_driver);
Annotation
- Immediate include surface: `cx88.h`, `linux/module.h`, `linux/slab.h`, `linux/init.h`, `linux/device.h`, `linux/dma-mapping.h`, `linux/interrupt.h`, `linux/delay.h`.
- Detected declarations: `function request_module_async`, `function request_modules`, `function flush_request_modules`, `function cx8802_start_dma`, `function cx8802_stop_dma`, `function cx8802_restart_queue`, `function cx8802_buf_prepare`, `function cx8802_buf_queue`, `function do_cancel_buffers`, `function cx8802_cancel_buffers`.
- 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.